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
System_CAPS_pubmethod SendAsync(IMessage)

Sends a message but doesn't receive a reply asynchronously.

System_CAPS_pubmethod SendSync(IMessage)

Sends a message and retrieves the reply synchronously.

Events

Name Description
System_CAPS_pubevent 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.

System_CAPS_pubevent 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