コード例 #1
0
        public async Task SendAsync(string command, object args)
        {
            await WebSocketClient.SendAsync(Serialize(command, args));

            _logger.Trace($"Command {command}, Args={JsonConvert.SerializeObject(args)} sent to device {this}");
        }
コード例 #2
0
 public void Teminate() => WebSocketClient.Dispose();
コード例 #3
0
 public WebSocketRemoteDevice(WebSocketClient client)
 {
     WebSocketClient = client ?? throw new ArgumentNullException(nameof(client));
 }