public Manager(Transport transport) { Transport = transport; this.Connection = transport == Transport.Socket ? new Connection(this) as IConnection : new BoSH(this) as IConnection; this.Parser = new Parser(this); this.State = new ClosedState(this); this.Events.OnNewTag += OnNewTag; this.Events.OnError += OnError; this.Events.OnConnect += OnConnect; this.Events.OnDisconnect += OnDisconnect; }
public Manager() { this.Connection = new Connection(this); this.Parser = new Parser(this); this.State = new ClosedState(this); this.Events.OnNewTag += OnNewTag; this.Events.OnError += OnError; this.Events.OnConnect += OnConnect; this.Events.OnDisconnect += OnDisconnect; }