コード例 #1
0
 public Stream OpenWrite()
 {
     if (_underlayingResource == null)
     {
         throw new IllegalCallException("Path '{0} cannot be opened for reading", _path);
     }
     return(_underlayingResource.OpenWrite());
 }
コード例 #2
0
 public Stream OpenWrite()
 {
     if (_underlayingResource == null)
     {
         return(null);
     }
     using (ServiceRegistration.Get <IImpersonationService>().CheckImpersonationFor(CanonicalLocalResourcePath))
         return(_underlayingResource.OpenWrite());
 }
コード例 #3
0
 public Stream OpenWrite()
 {
     if (_underlayingResource == null)
     {
         return(null);
     }
     using (ImpersonateUser(_impersonationContext))
         return(_underlayingResource.OpenWrite());
 }