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.

ref. http://chateau-logic.com/content/c-wpf-application-plumbing-using-emesary

There is a newer version of this package available.
See the version list below for details.

Requires NuGet or higher.

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

Release Notes Enumerate list to prevent "Recursive write lock acquisitions not allowed in this mode" Repackage correct versions Version consolidation Extra locking Transmitter now using thread safe ConcurrentList
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.

Version History

Version Downloads Last updated
2.4.4 356 12/8/2018
2.4.3 325 12/8/2018
2.4.2 321 12/7/2018
2.4.1 313 12/6/2018
2.4.0 474 11/16/2017 530 4/20/2017
2.3.0 499 4/20/2017 592 12/13/2016 527 11/23/2016 514 11/23/2016 514 11/18/2016
2.2.6 494 11/11/2016 510 9/30/2016
2.2.5 499 9/30/2016
2.2.4 495 9/30/2016
2.2.3 491 9/30/2016
2.2.2 501 9/30/2016
2.2.1 497 9/30/2016
2.1.1 759 2/27/2016 512 2/26/2016
2.0.10 669 6/4/2015
2.0.9 591 5/12/2015
2.0.8 570 4/17/2015
2.0.7 780 2/25/2015
2.0.6 549 2/25/2015
2.0.5 786 5/31/2014
2.0.4 951 8/11/2013
2.0.3 681 8/10/2013
2.0.2 689 7/25/2013
2.0.1 808 5/21/2013
2.0.0 763 5/1/2013
Show less