VL.Messaging.Abstraction 1.1.5

dotnet add package VL.Messaging.Abstraction --version 1.1.5
                    
NuGet\Install-Package VL.Messaging.Abstraction -Version 1.1.5
                    
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.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VL.Messaging.Abstraction" Version="1.1.5" />
                    
Directory.Packages.props
<PackageReference Include="VL.Messaging.Abstraction" />
                    
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 VL.Messaging.Abstraction --version 1.1.5
                    
#r "nuget: VL.Messaging.Abstraction, 1.1.5"
                    
#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 VL.Messaging.Abstraction@1.1.5
                    
#: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=VL.Messaging.Abstraction&version=1.1.5
                    
Install as a Cake Addin
#tool nuget:?package=VL.Messaging.Abstraction&version=1.1.5
                    
Install as a Cake Tool

Abstraction Messaging

This package contains the abstraction for potenital message brokers.

Getting Started

  1. Install package VL.Messaging.Abstraction

    dotnet add package VL.Messaging.Abstraction
    
  2. 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, CancellationToken cancellationToken = default);
    }
    
  3. 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 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.

Version Downloads Last Updated
1.1.5 167 12/22/2023
1.1.4 150 12/22/2023
1.1.3 140 12/22/2023
1.1.2 142 12/22/2023
1.1.1 117 12/22/2023
1.1.0 126 12/22/2023
1.0.0 182 12/18/2023