Ejemplo n.º 1
0
        }                                           // not available on iOS

        public Task <IPeripheralConnection> ConnectAsync(int timeout)
        {
            var con = new PeripheralConnection(this, ++_connNum);

            _connections.Add(con);
            if (_connections.Count > 1)
            {
                _logger.LogWarning("{ConnectionCount} parallel connections to the same device detected");
            }
            return(con.ConnectAsync(timeout));
        }