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