public void Connect() { this._closingClient = false; this.Client = this.ConnectUntilSucceeded(); if (this._closingClient) { if (this.Client != null) { this.CloseClientInternal(); } } else { this._eventFirer.FireConnected(); } }
private void CloseClientInternal() { this.Client.Dispose(); this.Client = null; }