public async Task SendCommandAsync(byte[] buffer) { if (_client == null) { lock (_lock) { if (_client == null) _client = new LEDClient(_hostName, _serviceName); } } await _client.SendDataAsync(buffer, buffer.Length); }
public async Task SendCommandAsync(byte[] buffer) { if (_client == null) { lock (_lock) { if (_client == null) { _client = new LEDClient(_hostName, _serviceName); } } } await _client.SendDataAsync(buffer, buffer.Length); }