Esempio n. 1
0
 private async Task RefreshClient(string socketId, ControlStateModel state)
 {
     var message = state.CreateControlStateMessage();
     await _handler.SendMessageAsync(socketId, JsonConvert.SerializeObject(message, _serializerSettings)).ConfigureAwait(false);
 }
Esempio n. 2
0
 private async Task RefreshAllClients(ControlStateModel state)
 {
     var message = state.CreateControlStateMessage();
     await _handler.SendMessageToAllAsync(JsonConvert.SerializeObject(message, _serializerSettings)).ConfigureAwait(false);
 }