Ejemplo n.º 1
0
        public IObservable <T> Observe(string topic)
        {
            var pipe = _pipeProvider.GetOrCreate(topic, _pipeType);

            return(pipe.Receive()
                   .Select(message => _adapter.Adapt(message))
                   .Finally(pipe.Dispose));
        }