コード例 #1
0
        /// <summary>
        /// 
        /// </summary>
        private void setDefaults()
        {
            XmlConfigurator.Configure(new FileInfo("config/log4net.properties"));

            //will comment out after Spring.NET implementation
            //userSvc = (IUserSvc)factory.getService("IUserSvc");

            //Spring.NET
            XmlApplicationContext ctx = new XmlApplicationContext("config/spring.cfg.xml");
            userSvc = (IUserSvc)ctx.GetObject("userSvc");

            users = userSvc.getAllUsers();
        }