Line data Source code
1 : using System;
2 : using Cqrs.Events;
3 :
4 : namespace Cqrs.WebApi.SignalR.Hubs
5 : {
6 : public interface INotificationHub
7 : {
8 : /// <summary>
9 : /// Send out an event to specific user RSNs
10 : /// </summary>
11 1 : void SendUsersEvent<TAuthenticationToken>(IEvent<TAuthenticationToken> eventData, params Guid[] userRsnCollection);
12 :
13 : /// <summary>
14 : /// Send out an event to specific user token
15 : /// </summary>
16 1 : void SendUserEvent<TAuthenticationToken>(IEvent<TAuthenticationToken> eventData, string userToken);
17 :
18 : /// <summary>
19 : /// Send out an event to all users
20 : /// </summary>
21 1 : void SendAllUsersEvent<TAuthenticationToken>(IEvent<TAuthenticationToken> eventData);
22 :
23 : /// <summary>
24 : /// Send out an event to all users except the specific user token
25 : /// </summary>
26 1 : void SendExceptThisUserEvent<TAuthenticationToken>(IEvent<TAuthenticationToken> eventData, string userToken);
27 : }
28 : }
|