Interface IClientMessageService
- Namespace
- adas_core.Application.Services.Interfaces
- Assembly
- adas-core.Application.dll
public interface IClientMessageService
- Extension Methods
Methods
ProcessMessage(Message, string)
Processes an incoming message within the context of the specified connection.
Task ProcessMessage(Message msg, string contextConnectionId)
Parameters
msgMessageThe message to be processed.
contextConnectionIdstringThe identifier of the connection context associated with the message.
Returns
SendAsync(string, OperationType?, object?)
Asynchronously sends a message to the specified receiver, optionally categorized by an operation type.
Task SendAsync(string receiverId, OperationType? type, object? msg)
Parameters
receiverIdstringThe identifier of the intended message receiver.
typeOperationType?The optional operation type used to classify the message.
msgobjectThe optional message payload to be sent.
Returns
- Task
A task that represents the asynchronous send operation.
SendToAllAsync(OperationType, object?)
Asynchronously broadcasts a message of the specified operation type to all connected recipients.
Task SendToAllAsync(OperationType type, object? msg)
Parameters
typeOperationTypeThe operation type that classifies the broadcast message.
msgobjectThe message payload to send, or
nullwhen no payload is required.
Returns
- Task
A task that represents the asynchronous broadcast operation.
SendUpdateMessageToBoxes(List<PatientLocation>)
Sends an update message to the specified list of patient location boxes.
void SendUpdateMessageToBoxes(List<PatientLocation> boxes)
Parameters
boxesList<PatientLocation>The list of patient locations that will receive the update message.