コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the IngresRoleProviderHandler class.
        /// </summary>
        /// <param name="conn">The Ingres connection to use.</param>
        /// <param name="tran">The Ingres transaction to use.</param>
        /// <param name="config">The configuration settings to use.</param>
        /// <param name="provider">The Ingres Role Provider facade to use.</param>
        internal IngresRoleProviderHandler(IngresConnection conn, IngresTransaction tran, IngresRoleProviderConfiguration config, IngresRoleProvider provider)
        {
            if (conn == null || tran == null)
            {
                throw new Exception();
            }

            this.tran = tran;
            this.conn = conn;

            this.config = config;
            this.provider = provider;
        }
コード例 #2
0
        /// <summary>
        /// Overridden <c>System.Configuration.Provider.ProviderBase.Initialize</c> Method providing
        /// our custom implementation for the Ingres ASP.NET Role Provider.
        /// </summary>
        /// <param name="name">The name of the provider.</param>
        /// <param name="coll">A NameValueCollection of configuration settings.</param>
        public override void Initialize(string name, NameValueCollection coll)
        {
            // Initialise the configuration;
            this.config = new IngresRoleProviderConfiguration(name, coll);

            // Initialize the abstract base class.
            base.Initialize(name, coll);
        }