CQRS.NET  4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless 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.