public IDisposable Subscribe(IObserver <StreamingMessage> observer) { var conn = new StreamingConnection(); conn.Start(observer, this.client, this.type, this.parameters); return(conn); }
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); }