IRecipient<TMessage> Interface
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.
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 |