WeakReferenceMessenger.Send<TMessage,TToken>(TMessage, TToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends a message of the specified type to all registered recipients.
public TMessage Send<TMessage,TToken> (TMessage message, TToken token) where TMessage : class where TToken : IEquatable<TToken>;
abstract member Send : 'Message * 'oken -> 'Message (requires 'Message : null and 'oken :> IEquatable<'oken>)
override this.Send : 'Message * 'oken -> 'Message (requires 'Message : null and 'oken :> IEquatable<'oken>)
Public Function Send(Of TMessage As Class, TToken As Class) (message As TMessage, token As TToken) As TMessage
Type Parameters
- TMessage
The type of message to send.
- TToken
The type of token to identify what channel to use to send the message.
Parameters
- message
- TMessage
The message to send.
- token
- TToken
The token indicating what channel to use.
Returns
TMessage
The message that was sent (ie. message
).