Unicorb.Playground.Bridge 0.9.18-alpha

This is a prerelease version of Unicorb.Playground.Bridge.
dotnet add package Unicorb.Playground.Bridge --version 0.9.18-alpha
                    
NuGet\Install-Package Unicorb.Playground.Bridge -Version 0.9.18-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Unicorb.Playground.Bridge" Version="0.9.18-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Unicorb.Playground.Bridge" Version="0.9.18-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Unicorb.Playground.Bridge" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Unicorb.Playground.Bridge --version 0.9.18-alpha
                    
#r "nuget: Unicorb.Playground.Bridge, 0.9.18-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Unicorb.Playground.Bridge@0.9.18-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Unicorb.Playground.Bridge&version=0.9.18-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Unicorb.Playground.Bridge&version=0.9.18-alpha&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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