Пример #1
0
        public Task <IBleResult> ConnectAsync(CancellationToken cancellationToken)
        {
            _connectionCancellation?.Cancel();
            _connectionCancellation = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);

            return(_connectable.TryAutoConnectAsync(_connectionCancellation.Token));
        }