Informer 0.1.2

Simple Message bus for .Net

Supported platforms:
- .NET Framework 4.5+
- .NET Standard 2.0+

Install-Package Informer -Version 0.1.2
dotnet add package Informer --version 0.1.2
<PackageReference Include="Informer" Version="0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Informer --version 0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Informer

Simple message bus for .Net

Supported platforms:

  • .NET Framework 4.5+
  • .NET Standard 2.0+

license
NuGet

Feeds

  • NuGet NuGet

Let's get started

From NuGet:

  • PM> Install-Package Informer

Implement a message model

using Informer;

public class MessageModel : Message
{
    public string Name { get; set; }
}

Subscribe and Unsubscribe

var messageBus = MessageBus.GetInstance();
var token = messageBus.Subscribe<MessageModel>(s =>
{
    //handle the message
});
messageBus.Unsubscribe(token);

Emit message

var msg = new MessageModel { Name = "Rosen" };
MessageBus.GetInstance().Emit(msg);

Customer event handler

public void HandleMessage(MessageModel message)
{
    //handle the message
}

MessageBus.GetInstance().Subscribe<MessageModel>(HandleMessage);

Informer

Simple message bus for .Net

Supported platforms:

  • .NET Framework 4.5+
  • .NET Standard 2.0+

license
NuGet

Feeds

  • NuGet NuGet

Let's get started

From NuGet:

  • PM> Install-Package Informer

Implement a message model

using Informer;

public class MessageModel : Message
{
    public string Name { get; set; }
}

Subscribe and Unsubscribe

var messageBus = MessageBus.GetInstance();
var token = messageBus.Subscribe<MessageModel>(s =>
{
    //handle the message
});
messageBus.Unsubscribe(token);

Emit message

var msg = new MessageModel { Name = "Rosen" };
MessageBus.GetInstance().Emit(msg);

Customer event handler

public void HandleMessage(MessageModel message)
{
    //handle the message
}

MessageBus.GetInstance().Subscribe<MessageModel>(HandleMessage);

  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

Version History

Version Downloads Last updated
0.1.2 79 3/25/2019
0.1.1 234 6/5/2018
0.1.0 221 4/20/2018