예제 #1
0
        /// <summary>
        /// 在构造函数的同时,从数据库中加载出所有钥匙
        /// </summary>
        public DataBaseKeyFactory()
        {
            IComponentFactory f = (IComponentFactory)this;

            foreach (PasswordLockerKey k in LoadKeyFromDatabase())
            {
                f.RegistComponent(k);
            }
        }