VL.Messaging.Abstraction
1.1.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package VL.Messaging.Abstraction --version 1.1.3
NuGet\Install-Package VL.Messaging.Abstraction -Version 1.1.3
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="VL.Messaging.Abstraction" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VL.Messaging.Abstraction --version 1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VL.Messaging.Abstraction, 1.1.3"
#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 VL.Messaging.Abstraction as a Cake Addin #addin nuget:?package=VL.Messaging.Abstraction&version=1.1.3 // Install VL.Messaging.Abstraction as a Cake Tool #tool nuget:?package=VL.Messaging.Abstraction&version=1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Abstraction Messaging
This package contains the abstraction for potenital message brokers.
Getting Started
Install package
VL.Messaging.Abstraction
dotnet add package VL.Messaging.Abstraction
Interfaces
public interface IMessageConsumer { public Task ConsumeAsync(CancellationToken cancellationToken = default); } public interface IMessageHandler<in TMessage> : IMessageHandler where TMessage : Message, new() { public Task HandleAsync(TMessage message, CancellationToken cancellationToken = default); } public interface IMessageHandlerDescriptor { public Type MessageType { get; } public IMessageHandler GetMessageHandler(); } public interface IMessagePublisher<in TMessage> where TMessage : Message, new() { public Task PublishAsync(TMessage message); }
Classes
public abstract class Message { } public abstract class MessageHandlerBase<TMessage> : IMessageHandler<TMessage> where TMessage : Message, new() { public abstract Task HandleAsync(TMessage message, CancellationToken cancellationToken = default); } public class MessageHandlerDescriptor<TMessage> : IMessageHandlerDescriptor where TMessage : Message, new() { } }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on VL.Messaging.Abstraction:
Package | Downloads |
---|---|
VL.Messaging.RabbitMQ
A thin wrapper around RabbitMQ that simplifies and standardizes consuming/publishing messages. |
GitHub repositories
This package is not used by any popular GitHub repositories.