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
<PackageReference Include="assistant.net.messaging.generic.server" Version="0.5.182" />
paket add assistant.net.messaging.generic.server --version 0.5.182
#r "nuget: assistant.net.messaging.generic.server, 0.5.182"
// 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
- 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)
- 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.
- 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
- 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 | Versions 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. |
-
net7.0
- assistant.net.logging (>= 0.5.182)
- assistant.net.messaging (>= 0.5.182)
- assistant.net.storage (>= 0.5.182)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 7.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 7.0.0)
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 | 263 | 5/8/2023 |
0.4.151 | 295 | 3/28/2023 |
0.4.145 | 315 | 3/22/2023 |
0.4.144 | 661 | 9/4/2022 |
0.4.140 | 680 | 8/13/2022 |
0.3.139 | 658 | 8/9/2022 |
0.3.138 | 649 | 8/7/2022 |
0.3.137 | 650 | 8/6/2022 |
0.3.135 | 709 | 7/14/2022 |
0.3.133 | 654 | 7/4/2022 |
0.3.127 | 669 | 6/26/2022 |
0.3.125 | 703 | 6/25/2022 |
0.3.123 | 667 | 6/23/2022 |
0.3.121 | 651 | 6/22/2022 |
0.3.119 | 655 | 6/20/2022 |