Exemple #1
0
        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;
        }
Exemple #2
0
        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;
        }