![]() |
VOOZH | about |
dotnet add package holonsoft.NoQBus.SignalR.Client --version 2.1.0
NuGet\Install-Package holonsoft.NoQBus.SignalR.Client -Version 2.1.0
<PackageReference Include="holonsoft.NoQBus.SignalR.Client" Version="2.1.0" />
<PackageVersion Include="holonsoft.NoQBus.SignalR.Client" Version="2.1.0" />Directory.Packages.props
<PackageReference Include="holonsoft.NoQBus.SignalR.Client" />Project file
paket add holonsoft.NoQBus.SignalR.Client --version 2.1.0
#r "nuget: holonsoft.NoQBus.SignalR.Client, 2.1.0"
#:package holonsoft.NoQBus.SignalR.Client@2.1.0
#addin nuget:?package=holonsoft.NoQBus.SignalR.Client&version=2.1.0Install as a Cake Addin
#tool nuget:?package=holonsoft.NoQBus.SignalR.Client&version=2.1.0Install as a Cake Tool
An async, fast and slim message bus for transparent inproc / outbound messaging
It has
private async Task SubscriberFunc(MyMessage message) {
//do sth with your message while running on your own task/thread
}
await _messageBus.Subscribe<MyMessage>(SubscriberFunc);
private async Task<MyResponse> SubscriberFunc(MyRequest message) {
//do sth with your message while running on your own task/thread
return new MyResponse(someResult);
}
await _messageBus.Subscribe<MyRequest, MyResponse>(SubscriberFunc);
await _messageBus.Publish(new MyMessage());
As many can subscribe to the same messages you can get multiple responses.
MyResponse[] responses = await _messageBus.GetResponses<MyResponse>(new MyRequest());
public record MyMessage : MessageBase {
public string OneOfMyProps { get; init; }
}
public record MyRequest : RequestBase {
public string OneOfMyProps { get; init; }
}
public record MyResponse : ResponseBase {
public string OneOfMyProps { get; init; }
}
public record MyRequest : RequestBase<MyResponse> {
public string OneOfMyProps { get; init; }
}
public record MyResponse : ResponseBase<MyRequest> {
public string OneOfMyProps { get; init; }
}
diContainerBuilder.AddNoQMessageBus(); //or servicecollection
//after building the container:
diContainer.Resolve<IMessageBusConfig>().StartLocalNoQMessageBus();
//from now on you can use:
_messageBus = diContainer.Resolve<IMessageBus>();
diContainerBuilder.AddNoQMessageBus(); //or servicecollection
diContainerBuilder.AddNoQSignalRHost(); //or servicecollection
//after building the container:
await diContainer.StartNoQSignalRHost(x => x.UseUrl("http://localhost:5001"));
//from now on you can use:
_messageBus = diContainer.Resolve<IMessageBus>();
diContainerBuilder.AddNoQMessageBus(); //or servicecollection
diContainerBuilder.AddNoQSignalRClient(); //or servicecollection
//after building the container:
await diContainer.StartNoQSignalRClient(x => x.UseUrl("http://localhost:5001"));
//from now on you can use:
_messageBus = diContainer.Resolve<IMessageBus>();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.