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.GlobalEventToHubProxy< TAuthenticationToken > Class Template Reference

Proxies ALL events received from the event bus to the INotificationHub. This gets registered as a global IEventHandler. More...

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

Public Member Functions

 GlobalEventToHubProxy (ILogger logger, INotificationHub notificationHub, IAuthenticationTokenHelper< TAuthenticationToken > authenticationTokenHelper)
 Instantiates a new instance of GlobalEventToHubProxy<TAuthenticationToken>. More...
 
void Handle (IEvent< TAuthenticationToken > @event)
 Calls EventToHubProxy<TAuthenticationToken>.HandleGenericEvent. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Cqrs.WebApi.Events.Handlers.EventToHubProxy< TAuthenticationToken >
 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 inherited from Cqrs.WebApi.Events.Handlers.EventToHubProxy< TAuthenticationToken >
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 ALL events received from the event bus to the INotificationHub. This gets registered as a global IEventHandler.

Template Parameters
TAuthenticationTokenThe Type of the authentication token.