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); }
public Task SendStatusUpdate(WorkStatusUpdateMessage message) { return(this.hubConnection.SendAsync("AddWorkerStatus", message)); }