Exemplo n.º 1
0
        /// <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;
		}
Exemplo n.º 4
0
        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);
		}
Exemplo n.º 6
0
 public FileSystemSecurityManager()
 {
     this.GlobalContext = new FileSystemSecurityContext(null, false);
 }