Exemplo n.º 1
0
        public override void ConnectClients()
        {
            base.ConnectClients();

            Assert.AreEqual(XmppState.Connected, this.client1.State);
            Assert.AreEqual(XmppState.Connected, this.client2.State);

            this.receptor = new XmppEventReceptor(this.client2);
            this.sink     = new XmppEventSink("XMPP Event Sink", this.client1, this.client2.FullJID, true);

            Log.Register(this.sink);
        }
Exemplo n.º 2
0
        public override void DisposeClients()
        {
            if (this.sink != null)
            {
                Log.Unregister(this.sink);
                this.sink.Dispose();
                this.sink = null;
            }

            if (this.receptor != null)
            {
                this.receptor.Dispose();
                this.receptor = null;
            }

            base.DisposeClients();
        }