The basic premise of the Emesary messaging system is to allow the decoupled operation of the various components that comprise any system - usually within the same process.
The basic unit of communication is a Notification, which is passed around to any and or all objects that implement the IReceive interface. Using Interfaces and ihneritance it is possible to pass around Notifications that have special meanings to certain objects and allow them to perform the appropriate function.
In our design Notifications are created and sent via a call to NotifyAll. Any object within the system can implement the IReceive interface and register itself with either a Queue (WIP) or a Transmitter to receive all notifications that are sent out. The underlying concept is that one part of a system knows that something needs to be done without needing to know how to do it. The part of the system that needs something done simply creates a notification and sends it out. Once received by the part of the system that is capable of performing the requested Notification the relevant actions will be carried out and a status of OK or Finished returned. See the section on return codes for a complete explanation of these codes and what they mean.
Requires NuGet 2.2.1 or higher.
Install-Package Emesary -Version 2.4.4
dotnet add package Emesary --version 2.4.4
<PackageReference Include="Emesary" Version="2.4.4" />
paket add Emesary --version 2.4.4
2.4.1 Change queued notification list to use ConcurrentQueue rather than List to fix threading issues.
2.4.0 Added support for .NET standard 2.0
2.3.0 Support for 3.5 removed. Use concurrent dictionary from 4.0 to fix concurrency issue
2.2.0 Added ITrackedNotification interface to facilitate asynchronous wait operations based on tracking ID
2.1.0 Added variants for .NET supported versions (3.5, 4, 4.5x, 4.6x)
2.0.8 Added Bridge to Queue recipient.
2.0.5 Fix inheritnace problem whereby QueuedTransmitter replaced the NotifyAll which was wrong.
2.0.4 Added missing event unlatch
2.0.3 Fix bug in delayed add; to permit concurrency we only add new receivers after messages processed, however the test was wrong. Added an AutoResetEvent onto the queue to allow better and more efficient thread processing.
This package has no dependencies.
This package is not used by any popular GitHub repositories.