Table of Contents

Class IntegrationEventExtensions

Namespace
Savvyio.EventDriven
Assembly
Savvyio.EventDriven.dll

Extension methods for the IIntegrationEvent interface.

public static class IntegrationEventExtensions
Inheritance
Object
IntegrationEventExtensions

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 : IIntegrationEvent

Parameters

request T

The IIntegrationEvent to extend.

Returns

String

The string representation of the event identifier from the request.

Type Parameters

T

The model that implements the IIntegrationEvent interface.

GetMemberType<T>(T)

Gets the string representation of the type from the request.

public static string GetMemberType<T>(this T request)
    where T : IIntegrationEvent

Parameters

request T

The IIntegrationEvent to extend.

Returns

String

The string representation of the type from the request.

Type Parameters

T

The model that implements the IIntegrationEvent 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 : IIntegrationEvent

Parameters

request T

The IIntegrationEvent to extend.

Returns

DateTime

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

Type Parameters

T

The model that implements the IIntegrationEvent interface.