public Task StatusChanged(FactorioServerStatus newStatus, FactorioServerStatus oldStatus) { string connectionId = Context.ConnectionId; if (Context.Items.TryGetValue(connectionId, out object serverId)) { string id = (string)serverId; return(_factorioServerManger.StatusChanged(id, newStatus, oldStatus)); } return(Task.FromResult(0)); }