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.

◆ GetEventFromData< TEvent >()

static TEvent Cqrs.EventStore.Bus.EventConverter.GetEventFromData< TEvent > ( byte []  eventData,
string  typeName 
)
static

Assumes the provided eventData is a strean of JSON text and deserialises the provided eventData into an object of type typeName then casts to TEvent .

Template Parameters
TEventThe Type of the event to convert to.
Parameters
eventDataA strean of JSON text
typeNameThe name of the Type to deserialise the provided eventData to.