MessageSubscription T  AddMessage Method DH.Messaging Documentation

[This is preliminary documentation and is subject to change.]

Add a message to the message queue

Namespace: DH.Messaging.MessageBus
Assembly: DH.Messaging (in DH.Messaging.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax

public void AddMessage(
	string messageKey,
	T message
)

Parameters

messageKey
Type: OnlineSystem String
Message subscription key
message
Type: T
Message to queue
Remarks

If any objects are subscribed to the OnMessageReceived event, the messages are delivered On-Demand and will bypass the queue. To start queuing messages again, set OnMessageReceived = null.
See Also