Unicorb.Playground.Bridge
0.9.18-alpha
dotnet add package Unicorb.Playground.Bridge --version 0.9.18-alpha
NuGet\Install-Package Unicorb.Playground.Bridge -Version 0.9.18-alpha
<PackageReference Include="Unicorb.Playground.Bridge" Version="0.9.18-alpha" />
<PackageVersion Include="Unicorb.Playground.Bridge" Version="0.9.18-alpha" />
<PackageReference Include="Unicorb.Playground.Bridge" />
paket add Unicorb.Playground.Bridge --version 0.9.18-alpha
#r "nuget: Unicorb.Playground.Bridge, 0.9.18-alpha"
#:package Unicorb.Playground.Bridge@0.9.18-alpha
#addin nuget:?package=Unicorb.Playground.Bridge&version=0.9.18-alpha&prerelease
#tool nuget:?package=Unicorb.Playground.Bridge&version=0.9.18-alpha&prerelease
Unicorb.Playground.Bridge
Bridge between Playground UI and Unicorb. It adds extractors, pipeline, state machine and an adapter for UI responses.
Dependencies: Unicorb, Unicorb.Playground
TFM: net9.0, net10.0
Install
dotnet add package Unicorb.Playground.Bridge
Quick Start
builder.Services.AddUnicorb(o => o.Registries(r =>
{
r.ScanHandlersFrom<MyMarker>();
r.ScanStatesFrom<MyMarker>();
r.ScanCommandsFrom<MyMarker>();
r.ScanExtractorsFrom<PlaygroundAssemblyMarker>();
}));
builder.Services.AddPlayground();
builder.Services.AddPlaygroundBridge();
var app = builder.Build();
app.Services.ValidateUnicorb<PlaygroundUpdate>();
app.UsePlayground();
AddPlaygroundBridge() registers IPlaygroundUpdatePublisher, ISessionKeyResolver<PlaygroundUpdate>, IUpdateService, IUpdateQueue, IStateMachine, IBotClientAdapter and PlaygroundCommandsConfigureService (when ConfigureBotCommands is enabled).
Composer commands are built from ICommandRegistry and registered on PlaygroundMessenger at startup.
Extractors
Built-in extractors cover text, callback, photo, video, audio, voice, document and command invocation.
To replace an extractor, add your implementation and call ScanExtractorsFrom<MyMarker>() after ScanExtractorsFrom<PlaygroundAssemblyMarker>().
Service Overrides
builder.Services.AddPlaygroundBridge(o =>
{
o.UseStateMachine<MyPlaygroundStateMachine>();
o.UseBotClientAdapter<MyAdapter>();
o.UseMessageMapper<MyPlaygroundMessageMapper>();
});
For custom behavior, inherit from StateMachine<PlaygroundUpdate> and override the required methods.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Unicorb (>= 0.9.18-alpha)
- Unicorb.Playground (>= 0.9.18-alpha)
-
net9.0
- Unicorb (>= 0.9.18-alpha)
- Unicorb.Playground (>= 0.9.18-alpha)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.18-alpha | 46 | 8/3/2026 |
| 0.9.17-alpha | 37 | 7/30/2026 |
| 0.9.16-alpha | 44 | 7/30/2026 |
| 0.9.15-alpha | 40 | 7/30/2026 |
| 0.9.14-alpha | 44 | 7/29/2026 |
| 0.9.13-alpha | 45 | 7/21/2026 |
| 0.9.12-alpha | 50 | 7/20/2026 |
| 0.9.11-alpha | 56 | 7/15/2026 |
| 0.9.10-alpha | 56 | 7/13/2026 |
| 0.9.9-alpha | 51 | 7/13/2026 |
| 0.9.8-alpha | 54 | 7/12/2026 |
| 0.9.7-alpha | 58 | 7/10/2026 |
| 0.9.6-alpha | 58 | 7/10/2026 |
| 0.9.5-alpha | 57 | 7/9/2026 |
| 0.9.4-alpha | 58 | 7/9/2026 |
| 0.9.3-alpha | 74 | 6/24/2026 |
| 0.9.2-alpha | 72 | 6/23/2026 |
| 0.9.1-alpha | 63 | 6/14/2026 |
| 0.9.0-alpha | 68 | 6/14/2026 |