Exemple #1
0
        /// <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;
            }
        }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public CifsClientTransport(CifsClientConfig config)
 {
     this.config     = config;
     this.cifsClient = new CifsClient(this.config);
 }
Exemple #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public CifsClientTransport()
     : base()
 {
     this.config     = new CifsClientConfig();
     this.cifsClient = new CifsClient(this.config);
 }