![]() |
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.
|
A helper for Azure Service Bus and Event Hub. More...
Public Member Functions | |
void | PrepareCommand< TCommand > (TCommand command, string framework) |
Prepares a ICommand<TAuthenticationToken> to be sent specifying the framework it is sent via. More... | |
bool | PrepareAndValidateCommand< TCommand > (TCommand command, string framework) |
Prepares and validates a ICommand<TAuthenticationToken> to be sent specifying the framework it is sent via. More... | |
ICommand< TAuthenticationToken > | ReceiveCommand (string messageBody, Func< ICommand< TAuthenticationToken >, bool?> receiveCommandHandler, string messageId, string signature, string signingTokenConfigurationKey, Action skippedAction=null, Action lockRefreshAction=null) |
Deserialises and processes the messageBody received from the network through the provided receiveCommandHandler . More... | |
bool? | DefaultReceiveCommand (ICommand< TAuthenticationToken > command, RouteManager routeManager, string framework) |
The default command handler that check if the ICommand<TAuthenticationToken> has already been processed by this framework, checks if the ICommand<TAuthenticationToken> is required, finds the handler from the provided routeManager . More... | |
void | PrepareEvent< TEvent > (TEvent @event, string framework) |
Prepares an IEvent<TAuthenticationToken> to be sent specifying the framework it is sent via. More... | |
bool | PrepareAndValidateEvent< TEvent > (TEvent @event, string framework) |
Prepares and validates an IEvent<TAuthenticationToken> to be sent specifying the framework it is sent via. More... | |
IEvent< TAuthenticationToken > | ReceiveEvent (string messageBody, Func< IEvent< TAuthenticationToken >, bool?> receiveEventHandler, string messageId, string signature, string signingTokenConfigurationKey, Action skippedAction=null, Action lockRefreshAction=null) |
Deserialises and processes the messageBody received from the network through the provided receiveEventHandler . More... | |
bool? | DefaultReceiveEvent (IEvent< TAuthenticationToken > @event, RouteManager routeManager, string framework) |
Refreshes the network lock. More... | |
void | RegisterHandler< TMessage > (ITelemetryHelper telemetryHelper, RouteManager routeManger, Action< TMessage > handler, Type targetedType, bool holdMessageLock=true) |
Manually registers the provided handler on the provided routeManger More... | |
void | RegisterGlobalEventHandler< TMessage > (ITelemetryHelper telemetryHelper, RouteManager routeManger, Action< TMessage > handler, bool holdMessageLock=true) |
Register an event handler that will listen and respond to all events. More... | |