public override void Dispose() { if (!IsDisposed) { if (InnerClient != null) { InnerClient.Dispose(); InnerClient = null; } IsDisposed = true; } }