IMessage<T> Interface
Definition
Defines a generic way to wrap an IRequest inside a message.
public interface IMessage<out T> : IAcknowledgeable where T : IRequest
Type Parameters
TThe type of the payload constraint to the IRequest interface.
- Inherited Members
- Extension Methods
Remarks
Inspired by cloudevents.io (https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md) default attributes.
Properties
| Name | Description |
|---|---|
| Data | Gets the payload of the message. |
| Id | Gets the identifier of the message. When combined with Source, this enables deduplication. |
| Source | Gets the context that describes the origin of the message. When combined with Id, this enables deduplication. |
| Time | Gets the time, expressed as the Coordinated Universal Time (UTC), at which this message was generated. |
| Type | Gets the type that describes the type of event related to the originating occurrence. |