Exemplo n.º 1
0
 public string RewritePath(string path)
 {
     if (impersonator == null)
         return path;
     if (mdcCache == null)
         mdcCache = new MappedDriveConverter();
     return mdcCache.ConvertPathToUnc(Configuration.Services.NetworkImpersonation.Domain, Configuration.Services.NetworkImpersonation.Username, path);
 }
Exemplo n.º 2
0
 public string RewritePath(string path)
 {
     if (impersonator == null)
     {
         return(path);
     }
     if (mdcCache == null)
     {
         mdcCache = new MappedDriveConverter();
     }
     return(mdcCache.ConvertPathToUnc(Configuration.Services.NetworkImpersonation.Domain, Configuration.Services.NetworkImpersonation.Username, path));
 }