Beispiel #1
0
 public ICollection <IFileSystemResourceAccessor> GetFiles()
 {
     using (ServiceRegistration.Get <IImpersonationService>().CheckImpersonationFor(CanonicalLocalResourcePath))
     {
         if (_path == "/" || IsServerPath(_path))
         {
             return(new List <IFileSystemResourceAccessor>());
         }
         return(_underlayingResource == null ? null : WrapLocalFsResourceAccessors(_underlayingResource.GetFiles()));
     }
 }
Beispiel #2
0
 public ICollection <IFileSystemResourceAccessor> GetFiles()
 {
     using (ImpersonateUser(_impersonationContext))
     {
         if (_path == "/" || IsServerPath(_path))
         {
             return(new List <IFileSystemResourceAccessor>());
         }
         return(_underlayingResource == null ? null : WrapLocalFsResourceAccessors(_underlayingResource.GetFiles()));
     }
 }