Interface INotificationHub
Assembly: Cqrs.WebApi.dll
Syntax
public interface INotificationHub
Methods
SendAllUsersEvent<TAuthenticationToken>(IEvent<TAuthenticationToken>)
Send out an event to all users
Declaration
void SendAllUsersEvent<TAuthenticationToken>(IEvent<TAuthenticationToken> eventData)
Parameters
Type |
Name |
Description |
IEvent<TAuthenticationToken> |
eventData |
|
Type Parameters
Name |
Description |
TAuthenticationToken |
|
SendExceptThisUserEvent<TAuthenticationToken>(IEvent<TAuthenticationToken>, String)
Send out an event to all users except the specific user token
Declaration
void SendExceptThisUserEvent<TAuthenticationToken>(IEvent<TAuthenticationToken> eventData, string userToken)
Parameters
Type |
Name |
Description |
IEvent<TAuthenticationToken> |
eventData |
|
System.String |
userToken |
|
Type Parameters
Name |
Description |
TAuthenticationToken |
|
SendUserEvent<TAuthenticationToken>(IEvent<TAuthenticationToken>, String)
Send out an event to specific user token
Declaration
void SendUserEvent<TAuthenticationToken>(IEvent<TAuthenticationToken> eventData, string userToken)
Parameters
Type |
Name |
Description |
IEvent<TAuthenticationToken> |
eventData |
|
System.String |
userToken |
|
Type Parameters
Name |
Description |
TAuthenticationToken |
|
SendUsersEvent<TAuthenticationToken>(IEvent<TAuthenticationToken>, Guid[])
Send out an event to specific user RSNs
Declaration
void SendUsersEvent<TAuthenticationToken>(IEvent<TAuthenticationToken> eventData, params Guid[] userRsnCollection)
Parameters
Type |
Name |
Description |
IEvent<TAuthenticationToken> |
eventData |
|
System.Guid[] |
userRsnCollection |
|
Type Parameters
Name |
Description |
TAuthenticationToken |
|