예제 #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();
 }