public IDisposable Subscribe(IObserver <StreamingMessage> observer)
        {
            var conn = new StreamingConnection();

            conn.Start(observer, this.client, this.type, this.parameters);
            return(conn);
        }
Example #2
0
        public IDisposable Subscribe(IObserver <StreamingMessage> observer)
        {
            if (observer == null)
            {
                throw new ArgumentNullException(nameof(observer));
            }

            var conn = new StreamingConnection();

            conn.Start(observer, this.client, this.type, this.parameters);
            return(conn);
        }