Table of Contents

Class DomainEventExtensions

Namespace
Savvyio.Domain
Assembly
Savvyio.Domain.dll

Extension methods for the IDomainEvent interface.

public static class DomainEventExtensions
Inheritance
Object
DomainEventExtensions

Methods

GetEventId<T>(T)

Gets the string representation of the event identifier from the request.

public static string GetEventId<T>(this T request)
    where T : IDomainEvent

Parameters

request T

The ITracedDomainEvent to extend.

Returns

String

The string representation of the event identifier from the request.

Type Parameters

T

The model that implements the ITracedDomainEvent interface.

GetTimestamp<T>(T)

Gets the System.DateTime value of the timestamp from the request.

public static DateTime GetTimestamp<T>(this T request)
    where T : IDomainEvent

Parameters

request T

The ITracedDomainEvent to extend.

Returns

DateTime

The System.DateTime value of the timestamp from the request.

Type Parameters

T

The model that implements the ITracedDomainEvent interface.