VOOZH about

URL: https://www.nuget.org/packages/holonsoft.NoQBus/

⇱ NuGet Gallery | holonsoft.NoQBus 2.1.0




holonsoft.NoQBus 2.1.0

dotnet add package holonsoft.NoQBus --version 2.1.0
 
 
NuGet\Install-Package holonsoft.NoQBus -Version 2.1.0
 
 
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="holonsoft.NoQBus" Version="2.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="holonsoft.NoQBus" Version="2.1.0" />
 
Directory.Packages.props
<PackageReference Include="holonsoft.NoQBus" />
 
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 holonsoft.NoQBus --version 2.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: holonsoft.NoQBus, 2.1.0"
 
 
#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 holonsoft.NoQBus@2.1.0
 
 
#: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=holonsoft.NoQBus&version=2.1.0
 
Install as a Cake Addin
#tool nuget:?package=holonsoft.NoQBus&version=2.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NoQBus

An async, fast and slim message bus for transparent inproc / outbound messaging

It has

  • no queue!
  • fully async processing
  • parallelization ⇒ every consumer runs it's own task/thread!
  • transparent client / server functionality
  • immutable records as messages
  • no serialization if a message stays on one side!
  • advanced filtering of requests or repsonses

Samples

Subscription with no response:

private async Task SubscriberFunc(MyMessage message) {
 //do sth with your message while running on your own task/thread
}

await _messageBus.Subscribe<MyMessage>(SubscriberFunc);

Subscription with response:

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);

Publish fire and forget message:

await _messageBus.Publish(new MyMessage());

Publish and request some responses:

As many can subscribe to the same messages you can get multiple responses.

MyResponse[] responses = await _messageBus.GetResponses<MyResponse>(new MyRequest());

Sample message:

public record MyMessage : MessageBase {
 public string OneOfMyProps { get; init; }
}

Sample request:

public record MyRequest : RequestBase {
 public string OneOfMyProps { get; init; }
}

Sample response:

public record MyResponse : ResponseBase {
 public string OneOfMyProps { get; init; }
}

Request and response with known response/request type

public record MyRequest : RequestBase<MyResponse> {
 public string OneOfMyProps { get; init; }
}

public record MyResponse : ResponseBase<MyRequest> {
 public string OneOfMyProps { get; init; }
}

Starting the Messagebus

Only local
diContainerBuilder.AddNoQMessageBus(); //or servicecollection
//after building the container:
diContainer.Resolve<IMessageBusConfig>().StartLocalNoQMessageBus();
//from now on you can use:
_messageBus = diContainer.Resolve<IMessageBus>();
SignalR server
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>();
SignalR client
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. 
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 holonsoft.NoQBus:

Package Downloads
holonsoft.NoQBus.SignalR.Client

Client part for the SignalR bridge of our asynchronous, fast and fully parallelized message bus.

holonsoft.NoQBus.SignalR.Host

Host part for the SignalR bridge of our asynchronous, fast and fully parallelized message bus.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 417 12/8/2025
1.7.0 924 4/11/2022
1.6.1 655 12/6/2021
1.3.1 716 8/10/2021
1.2.1 710 7/5/2021
1.0.0 680 6/22/2021