Пример #1
0
        public void StartReceivingNewMessage()
        {
            this.receiveMessagesCancellationTokenSource = new CancellationTokenSource();

            var inputStream = new ReactiveClientInputStream(
                this.WebSocket, this.reactiveConnection, this, CancellationTokenSource.CreateLinkedTokenSource(this.cancellationToken, this.receiveMessagesCancellationTokenSource.Token).Token);

            inputStream.StartReceiving();
        }
Пример #2
0
 void IReactiveClientConnectionCallback.MessageReceiveDone(ReactiveClientInputStream stream)
 {
     this.StartReceivingNewMessage();
 }