Example #1
0
        /// <summary>
        /// <para>Gets the configuration object <see cref="Type"/> for the factory to create given the <paramref name="authorizationProviderName"/>.</para>
        /// </summary>
        /// <param name="authorizationProviderName">
        /// <para>The name of the <see cref="IAuthorizationProvider"/> to create.</para>
        /// </param>
        /// <returns>
        /// <para>The <see cref="Type"/> of the <see cref="IAuthorizationProvider"/> to create.</para>
        /// </returns>
        protected override Type GetConfigurationType(string authorizationProviderName)
        {
            SecurityConfigurationView securityConfigurationView = (SecurityConfigurationView)CreateConfigurationView();
            AuthorizationProviderData authorizationProviderData = securityConfigurationView.GetAuthorizationProviderData(authorizationProviderName);

            return(GetType(authorizationProviderData.TypeName));
        }
        /// <summary>
        /// <para>Gets the configuration object <see cref="Type"/> for the factory to create given the <paramref name="securityCacheProviderName"/>.</para>
        /// </summary>
        /// <param name="securityCacheProviderName">
        /// <para>The name of the <see cref="ISecurityCacheProvider"/> to create.</para>
        /// </param>
        /// <returns>
        /// <para>The <see cref="Type"/> of the <see cref="ISecurityCacheProvider"/> to create.</para>
        /// </returns>
        protected override Type GetConfigurationType(string securityCacheProviderName)
        {
            SecurityConfigurationView securityConfigurationView = (SecurityConfigurationView)CreateConfigurationView();
            SecurityCacheProviderData securityCacheProviderData = securityConfigurationView.GetSecurityCacheProviderData(securityCacheProviderName);

            return(GetType(securityCacheProviderData.TypeName));
        }
        /// <summary>
        /// <para>Gets the configuration object <see cref="Type"/> for the factory to create given the <paramref name="profileProviderName"/>.</para>
        /// </summary>
        /// <param name="profileProviderName">
        /// <para>The name of the <see cref="IProfileProvider"/> to create.</para>
        /// </param>
        /// <returns>
        /// <para>The <see cref="Type"/> of the <see cref="IProfileProvider"/> to create.</para>
        /// </returns>
        protected override Type GetConfigurationType(string profileProviderName)
        {
            SecurityConfigurationView securityConfigurationView = (SecurityConfigurationView)CreateConfigurationView();
            ProfileProviderData       profileProviderData       = securityConfigurationView.GetProfileProviderData(profileProviderName);

            return(GetType(profileProviderData.TypeName));
        }
Example #4
0
        /// <summary>
        /// <para>Gets the configuration object <see cref="Type"/> for the factory to create given the <paramref name="roleProviderName"/>.</para>
        /// </summary>
        /// <param name="roleProviderName">
        /// <para>The name of the <see cref="IRolesProvider"/> to create.</para>
        /// </param>
        /// <returns>
        /// <para>The <see cref="Type"/> of the <see cref="IRolesProvider"/> to create.</para>
        /// </returns>
        protected override Type GetConfigurationType(string roleProviderName)
        {
            SecurityConfigurationView securityConfigurationView = (SecurityConfigurationView)CreateConfigurationView();
            RolesProviderData         rolesProviderData         = securityConfigurationView.GetRolesProviderData(roleProviderName);

            return(GetType(rolesProviderData.TypeName));
        }
Example #5
0
        /// <summary>
        /// <para>Gets the default provider name.</para>
        /// </summary>
        /// <returns>The default provider name.</returns>
        protected override string GetDefaultInstanceName()
        {
            SecurityConfigurationView securityConfigurationView = (SecurityConfigurationView)CreateConfigurationView();

            return(securityConfigurationView.GetDefaultAuthorizationProviderName());
        }