Esempio n. 1
0
 public void AddWorkerStatus(WorkStatusUpdateMessage message)
 {
     message.DateReceived = DateTime.Now;
     this.session.AddWorkerStatus(message, this.Context.ConnectionId);
 }
        public void AddWorkerStatus(WorkStatusUpdateMessage status, string connectionId)
        {
            var worker = this.FindWorkerByConnectionId(connectionId);

            worker?.AddStatus(status);
        }
Esempio n. 3
0
 public Task SendStatusUpdate(WorkStatusUpdateMessage message)
 {
     return(this.hubConnection.SendAsync("AddWorkerStatus", message));
 }