IMessageSender Interface
Interface to use for sending and receiving messages.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public interface IMessageSender
public interface class IMessageSender
Public Interface IMessageSender
Methods
Name | Description | |
---|---|---|
SendAsync(IMessage) | Sends a message but doesn't receive a reply asynchronously. |
|
SendSync(IMessage) | Sends a message and retrieves the reply synchronously. |
Events
Name | Description | |
---|---|---|
OnReceived | An event that fires after a message is received. The message contents can be changed before the message is returned to the caller. Only SendSync fires this event; SendAsync does not. |
|
OnSend | An event that fires before a message is sent. The message contents can be changed before the message is delivered or inspected. Both SendSync and SendAsync fire this event. |
See Also
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top