Candor.Security.CandorAuthorizationRoleProvider.Initialize C# (CSharp) 메소드

Initialize() 공개 메소드

gets or sets if this role provider should load roles using the AuthorizationManager. Initializes this role provider given the specified config.
If false, the authorization web service will be called directly and without any caching. If this provider is configured with 'useAuthorizationManager="false"' then the configuration will also be passed down to the default web service implementation of an authorization provider which will fulfull requests to this role provider.
public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
리턴 void
        public override void Initialize( string name, NameValueCollection config )
        {
            _config = config;
            base.Initialize(name, config);

            //if (config["useAuthorizationManager"] != null)
            //    UseAuthorizationManager = System.Convert.ToBoolean(config["useAuthorizationManager"].ToString());
        }