예제 #1
0
        public void Connect()
        {
            this._closingClient = false;

            this.Client = this.ConnectUntilSucceeded();

            if (this._closingClient)
            {
                if (this.Client != null)
                {
                    this.CloseClientInternal();
                }
            }
            else
            {
                this._eventFirer.FireConnected();
            }
        }
예제 #2
0
 private void CloseClientInternal()
 {
     this.Client.Dispose();
     this.Client = null;
 }