CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ GetIdentity< TAuthenticationToken >()

static Guid Cqrs.Events.EventExtensions.GetIdentity< TAuthenticationToken > ( this IEvent< TAuthenticationToken > @  event)
static

The identity of the target object of the provided event .

Parameters
eventThe IEvent<TAuthenticationToken> to locate the identify from.
Template Parameters
TAuthenticationTokenThe Type of the authentication token.
Returns
IEventWithIdentity<TAuthenticationToken>.Rsn or IEvent<TAuthenticationToken>.Id.