Editar

Compartir a través de


IRecipient<TMessage> Interface

Definition

An interface for a recipient that declares a registration for a specific message type.

public interface IRecipient<in TMessage> where TMessage : class
type IRecipient<'Message (requires 'Message : null)> = interface
Public Interface IRecipient(Of In TMessage)

Type Parameters

TMessage

The type of message to receive.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Methods

Receive(TMessage)

Receives a given TMessage message instance.

Applies to