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.
Cqrs.WebApi.Events.Handlers.EventToHubProxy< TAuthenticationToken > Class Template Reference

Proxies events from the event bus to the INotificationHub. This requires one or more IEventHandler implementations in order to be triggered. More...

+ Inheritance diagram for Cqrs.WebApi.Events.Handlers.EventToHubProxy< TAuthenticationToken >:

Protected Member Functions

 EventToHubProxy (ILogger logger, INotificationHub notificationHub, IAuthenticationTokenHelper< TAuthenticationToken > authenticationTokenHelper)
 Instantiates a new instance of EventToHubProxy<TAuthenticationToken>. More...
 
virtual void HandleGenericEvent (IEvent< TAuthenticationToken > message)
 Get the authentication token of the entity that triggered the request generating the provided message Extract any proxy information attributes (NotifyCallerEventAttribute, NotifyEveryoneEventAttribute and NotifyEveryoneExceptCallerEventAttribute) then proxy the provided message to NotificationHub if an attribute is present. More...
 

Properties

ILogger Logger [get]
 Gets or sets the ILogger. More...
 
INotificationHub NotificationHub [get]
 The INotificationHub to proxy events to. More...
 
IAuthenticationTokenHelper< TAuthenticationToken > AuthenticationTokenHelper [get]
 Gets or sets the IAuthenticationTokenHelper<TAuthenticationToken>. More...
 

Detailed Description

Proxies events from the event bus to the INotificationHub. This requires one or more IEventHandler implementations in order to be triggered.

Template Parameters
TAuthenticationTokenThe Type of the authentication token.