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.

◆ ReceiveEvent()

virtual IEvent<TAuthenticationToken> Cqrs.Azure.ServiceBus.AzureBusHelper< TAuthenticationToken >.ReceiveEvent ( string  messageBody,
Func< IEvent< TAuthenticationToken >, bool?>  receiveEventHandler,
string  messageId,
string  signature,
string  signingTokenConfigurationKey,
Action  skippedAction = null,
Action  lockRefreshAction = null 
)
virtual

Deserialises and processes the messageBody received from the network through the provided receiveEventHandler .

Parameters
messageBodyA serialised IMessage.
receiveEventHandlerThe handler method that will process the IEvent<TAuthenticationToken>.
messageIdThe network id of the IMessage.
signatureThe signature of the IMessage.
signingTokenConfigurationKeyThe configuration key for the signing token as used by IConfigurationManager.
skippedActionThe Action to call when the IEvent<TAuthenticationToken> is being skipped.
lockRefreshActionThe Action to call to refresh the network lock.
Returns
The IEvent<TAuthenticationToken> that was processed.

Implements Cqrs.Azure.ServiceBus.IAzureBusHelper< TAuthenticationToken >.