public BayeuxClient(
     WebSocketTransportOptions options,
     IEnumerable <TimeSpan> reconnectDelays = null,
     TaskScheduler eventTaskScheduler       = null)
 {
     this.transport          = options.Build(PublishEvents);
     this.eventTaskScheduler = ChooseEventTaskScheduler(eventTaskScheduler);
     this.connectLoop        = new ConnectLoop("websocket", reconnectDelays, this);
     this.subscriber         = new Subscriber(this);
 }
 public BayeuxClient(
     IHttpPost httpPost,
     string url,
     IEnumerable <TimeSpan> reconnectDelays = null,
     TaskScheduler eventTaskScheduler       = null)
 {
     this.transport          = new HttpLongPollingTransport(httpPost, url, PublishEvents);
     this.eventTaskScheduler = ChooseEventTaskScheduler(eventTaskScheduler);
     this.connectLoop        = new ConnectLoop("long-polling", reconnectDelays, this);
     this.subscriber         = new Subscriber(this);
 }