示例#1
0
        public void SetHandlersAccessPolicy(ServerManager srvman, string fqPath, HandlerAccessPolicy policy)
        {
            var config = srvman.GetWebConfiguration(fqPath);
            //
            HandlersSection section = (HandlersSection)config.GetSection(Constants.HandlersSection, typeof(HandlersSection));

            //
            section.AccessPolicy = policy;
        }
示例#2
0
        public HandlerAccessPolicy GetHandlersAccessPolicy(ServerManager srvman, string fqPath)
        {
            var config = srvman.GetWebConfiguration(fqPath);
            //
            HandlersSection section = (HandlersSection)config.GetSection(Constants.HandlersSection, typeof(HandlersSection));

            //
            return(section.AccessPolicy);
        }