Esempio n. 1
0
 public Task Connect(string connectionString)
 {
     _strm       = RemoteStreamFactory.CreateStream(connectionString);
     _strmCancel = new CancellationTokenSource();
     _strm.SelectMany(_ => _).Subscribe(_decoder, _strmCancel.Token);
     _encoder.Subscribe(_strm, _strmCancel.Token);
     return(_strm.Start(CancellationToken.None));
 }