Interface IMessageHubService
Assembly: Cmc.Nexus.Common.Contracts.dll
Syntax
public interface IMessageHubService : IService
Methods
Broadcast(String)
Declaration
void Broadcast(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
ClearConnection(String)
Declaration
void ClearConnection(string connectionId)
Parameters
Type |
Name |
Description |
System.String |
connectionId |
|
RegisterUserConnection(RegisterUserConnectionRequest)
Declaration
ServiceResponse RegisterUserConnection(RegisterUserConnectionRequest request)
Parameters
Returns
Type |
Description |
Cmc.Core.ServiceModel.ServiceResponse |
|
SendToUser(Int32, String, Object, Boolean)
Declaration
void SendToUser(int userId, string messageType, object message, bool persist)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.String |
messageType |
|
System.Object |
message |
|
System.Boolean |
persist |
|
SendToUsers(Int32[], String, Object, Boolean)
Declaration
void SendToUsers(int[] userIds, string messageType, object message, bool persist)
Parameters
Type |
Name |
Description |
System.Int32[] |
userIds |
|
System.String |
messageType |
|
System.Object |
message |
|
System.Boolean |
persist |
|