예제 #1
0
        public static SmbClient GetSmbClient(string path)
        {
            var client = SmbConnectionPool.Remove(MakeKey(path), 5, out _poolVersion);

            if (client == null)
            {
                client = new SmbClient(path);
            }
            return(client);
        }
예제 #2
0
 protected virtual void Dispose(bool disposing)
 {
     SmbConnectionPool.Add(_connectionKey, this, _poolVersion);
 }