/// <summary> /// Release resources. /// </summary> /// <param name="disposing">If disposing equals true, Managed and unmanaged resources are disposed. /// if false, Only unmanaged resources can be disposed.</param> protected override void Dispose(bool disposing) { if (!this.disposed) { // If disposing equals true, dispose all managed and unmanaged resources. if (disposing) { // Free managed resources & other reference types: } // Call the appropriate methods to clean up unmanaged resources. if (this.cifsClient != null) { this.cifsClient.Dispose(); this.cifsClient = null; } base.Dispose(disposing); this.disposed = true; } }
/// <summary> /// Constructor /// </summary> public CifsClientTransport(CifsClientConfig config) { this.config = config; this.cifsClient = new CifsClient(this.config); }
/// <summary> /// Constructor /// </summary> public CifsClientTransport() : base() { this.config = new CifsClientConfig(); this.cifsClient = new CifsClient(this.config); }