/// <summary> /// /// </summary> /// <param name="previousContext"></param> /// <param name="inherit"></param> internal FileSystemSecurityContext(FileSystemSecurityContext previousContext, bool inherit) { this.inherit = inherit; this.previousContext = previousContext; this.verifiers = new List <Pair <object, AccessPermissionVerifier> >(); }
/// <summary> /// /// </summary> /// <param name="previousContext"></param> /// <param name="inherit"></param> internal FileSystemSecurityContext(FileSystemSecurityContext previousContext, bool inherit) { this.inherit = inherit; this.previousContext = previousContext; this.verifiers = new List<Pair<object, AccessPermissionVerifier>>(); }
public virtual FileSystemSecurityContext AcquireSecurityContext(bool inherit) { this.currentContext = new FileSystemSecurityContext(this.currentContext, inherit); this.currentContext.Disposed += delegate { this.currentContext = this.currentContext.PreviousContext; }; return this.currentContext; }
public virtual FileSystemSecurityContext AcquireSecurityContext(bool inherit) { this.currentContext = new FileSystemSecurityContext(this.currentContext, inherit); this.currentContext.Disposed += delegate { this.currentContext = this.currentContext.PreviousContext; }; return(this.currentContext); }
public FileSystemSecurityManager() { this.GlobalContext = new FileSystemSecurityContext(null, false); }