Editar

Compartilhar via


StrongReferenceMessenger.Send<TMessage,TToken>(TMessage, TToken) Method

Definition

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).

Implements

Applies to