/// <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 virtual 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.cifsServer != null)
                {
                    this.cifsServer.Dispose();
                    this.cifsServer = null;
                }

                this.disposed = true;
            }
        }
 /// <summary>
 /// Constructor
 /// </summary>
 public CifsServerTransport()
 {
     this.cifsServer = new CifsServer(new NetbiosServerConfig(0, MAX_NETBIOS_SESSIONS, MAX_NETBIOS_NAMES));
     this.fsEndpoints = new Dictionary<object,FsEndpoint>();
 }