assistant.net.messaging.generic.server 0.5.182

dotnet add package assistant.net.messaging.generic.server --version 0.5.182                
NuGet\Install-Package assistant.net.messaging.generic.server -Version 0.5.182                
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="assistant.net.messaging.generic.server" Version="0.5.182" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add assistant.net.messaging.generic.server --version 0.5.182                
#r "nuget: assistant.net.messaging.generic.server, 0.5.182"                
#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.
// Install assistant.net.messaging.generic.server as a Cake Addin
#addin nuget:?package=assistant.net.messaging.generic.server&version=0.5.182

// Install assistant.net.messaging.generic.server as a Cake Tool
#tool nuget:?package=assistant.net.messaging.generic.server&version=0.5.182                

assistant.net.messaging.generic.server

A messaging server extension which handles messages from a generic client communicating via the same storage.

Configuration

  1. Configure message handling on a hosted server
// Startup.cs: void ConfigureServices(IServiceCollection services)
services
    .AddGenericMessageHandling(b => ...) // adds dependencies and initial configuration
    .ConfigureGenericMessageHandling(b => ...); // appends existing configuration (no dependencies are added)
  1. Register message handlers
services.ConfigureGenericMessageHandling(b => b.AddHandler<SomeMessageHandler>());
// or named messaging client
services.ConfigureMessageClient(b => b.AddHandler<SomeMessageHandler>());

Note As configured message handler will be run in non-default named options so all its dependencies should be configured the same named context or create own appropriately named DI scope to get dependencies from another named context.

  1. Configure a single message handler
services.ConfigureGenericMessageHandling(b => b.UseMongo(o => ...)); // or other provider
// or
services.ConfigureMessageClient(b => b.UseMongo(o => ...)); // or other provider
// or
services.ConfigureStorage(b => b.UseMongo(o => ...)); // or other provider
  1. Configure messaging client for generic message handling additionally.

Named configuration

Message handling implementation is based on named options so you can have multiple named message handling servers with different configurations.

services
    .AddGenericMessageHandling(b => b.AddHandler<Handle1>()) // default name registration
    .AddGenericMessageHandling("name-1", b => b.AddHandler<Handle2>()) // named registration
    .AddGenericMessageHandling("name-2", b => b.AddHandler<Handle3>()); // named registration
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on assistant.net.messaging.generic.server:

Package Downloads
assistant.net.messaging.mongo.server

MongoDB based server message handling.

assistant.net.messaging.sqlite.server

A server for SQLite based remote message handling server.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.182 256 5/8/2023
0.4.151 289 3/28/2023
0.4.145 309 3/22/2023
0.4.144 653 9/4/2022
0.4.140 672 8/13/2022
0.3.139 651 8/9/2022
0.3.138 643 8/7/2022
0.3.137 644 8/6/2022
0.3.135 703 7/14/2022
0.3.133 647 7/4/2022
0.3.127 663 6/26/2022
0.3.125 694 6/25/2022
0.3.123 658 6/23/2022
0.3.121 642 6/22/2022
0.3.119 648 6/20/2022