public virtual Guid AddPermissionVerifier(AccessPermissionVerifier verifier) { var guid = new Guid(); AddPermissionVerifier(guid, verifier); return(guid); }
public virtual void AddPermissionVerifier(object id, AccessPermissionVerifier verifier) { IList <Pair <object, AccessPermissionVerifier> > localVerifiers; lock (this.addRemoveLock) { if (verifier is FileSystemSecurityContext) { throw new ArgumentException("verifier"); } lock (this.verifiers) { localVerifiers = new List <Pair <object, AccessPermissionVerifier> >(this.verifiers); } localVerifiers.Add(new Pair <object, AccessPermissionVerifier>(id, verifier)); this.verifiers = localVerifiers; } }
public virtual Guid AddPermissionVerifier(AccessPermissionVerifier verifier) { var guid = new Guid(); AddPermissionVerifier(guid, verifier); return guid; }
public virtual void AddPermissionVerifier(object id, AccessPermissionVerifier verifier) { IList<Pair<object, AccessPermissionVerifier>> localVerifiers; lock (this.addRemoveLock) { if (verifier is FileSystemSecurityContext) { throw new ArgumentException("verifier"); } lock (this.verifiers) { localVerifiers = new List<Pair<object, AccessPermissionVerifier>>(this.verifiers); } localVerifiers.Add(new Pair<object, AccessPermissionVerifier>(id, verifier)); this.verifiers = localVerifiers; } }