コード例 #1
0
 public async void OnActionChange(object sender, ActionInfo action)
 {
     await _socket.SendAsync(
         JsonSerializer.SerializeToUtf8Bytes(new WebSocketResponse("actionStatus", new Dictionary <string, object>
     {
         [action.GetActionName()] = action
     }), _options),
         WebSocketMessageType.Text, true, _cancellation)
     .ConfigureAwait(false);
 }