|
| AzureBusHelper (IAuthenticationTokenHelper< TAuthenticationToken > authenticationTokenHelper, ICorrelationIdHelper correlationIdHelper, ILogger logger, IMessageSerialiser< TAuthenticationToken > messageSerialiser, IBusHelper busHelper, IHashAlgorithmFactory hashAlgorithmFactory, IConfigurationManager configurationManager, IDependencyResolver dependencyResolver) |
| Instantiates a new instance of AzureBusHelper<TAuthenticationToken>. More...
|
|
virtual void | PrepareCommand< TCommand > (TCommand command, string framework) |
| Prepares a ICommand<TAuthenticationToken> to be sent specifying the framework it is sent via. More...
|
|
virtual bool | PrepareAndValidateCommand< TCommand > (TCommand command, string framework) |
| Prepares and validates a ICommand<TAuthenticationToken> to be sent specifying the framework it is sent via. More...
|
|
virtual 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...
|
|
virtual ? 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...
|
|
virtual void | PrepareEvent< TEvent > (TEvent @event, string framework) |
| Prepares an IEvent<TAuthenticationToken> to be sent specifying the framework it is sent via. More...
|
|
virtual bool | PrepareAndValidateEvent< TEvent > (TEvent @event, string framework) |
| Prepares and validates an IEvent<TAuthenticationToken> to be sent specifying the framework it is sent via. More...
|
|
virtual 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...
|
|
virtual ? bool | DefaultReceiveEvent (IEvent< TAuthenticationToken > @event, RouteManager routeManager, string framework) |
| The default event handler that check if the IEvent<TAuthenticationToken> has already been processed by this framework, checks if the IEvent<TAuthenticationToken> is required, finds the handler from the provided routeManager . More...
|
|
virtual 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...
|
|
virtual 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...
|
|
A helper for Azure Service Bus and Event Hub.
- Template Parameters
-
TAuthenticationToken | The Type of the authentication token. |