Table of Contents

IMessage<T> Interface

Definition

Namespace
Savvyio.Messaging
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/Messaging/IMessage.cs

Defines a generic way to wrap an IRequest inside a message.

public interface IMessage<out T> : IAcknowledgeable where T : IRequest

Type Parameters

T

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

See Also