CQRS.NET  2.1
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.WebApi.SignalR.Hubs.NotificationHub Class Reference
+ Inheritance diagram for Cqrs.WebApi.SignalR.Hubs.NotificationHub:

Public Member Functions

 NotificationHub (ILogger logger, ICorrelationIdHelper correlationIdHelper)
 
 NotificationHub ()
 
override Task OnConnected ()
 When the connection connects to this hub instance we register the connection so we can respond back to it. More...
 
override Task OnReconnected ()
 When the connection reconnects to this hub instance we register the connection so we can respond back to it. More...
 
- Public Member Functions inherited from Cqrs.WebApi.SignalR.Hubs.INotificationHub
void SendUsersEvent< TAuthenticationToken > (IEvent< TAuthenticationToken > eventData, params Guid[] userRsnCollection)
 Send out an event to specific user RSNs More...
 
void SendUserEvent< TAuthenticationToken > (IEvent< TAuthenticationToken > eventData, string userToken)
 Send out an event to specific user token More...
 
void SendAllUsersEvent< TAuthenticationToken > (IEvent< TAuthenticationToken > eventData)
 Send out an event to all users More...
 
void SendExceptThisUserEvent< TAuthenticationToken > (IEvent< TAuthenticationToken > eventData, string userToken)
 Send out an event to all users except the specific user token More...
 

Protected Member Functions

virtual string UserToken ()
 
virtual Task Join ()
 
virtual IDictionary< string, object > GetAdditionalDataForLogging (Guid userRsn)
 
virtual IDictionary< string, object > GetAdditionalDataForLogging (string userToken)
 

Properties

ILogger Logger [get, set]
 
ICorrelationIdHelper CorrelationIdHelper [get, set]
 
Func< string, Guid > ConvertUserTokenToUserRsn [get, set]
 
virtual IHubContext CurrentHub [get]