コード例 #1
0
        public MyServiceAuthorizationManager()
        {
            DIContainerFactory factory = new DIContainerFactory();
            IDIContainer diContainer = factory.CreateAndLoadDIContainer();

            var regexHelper = diContainer.GetInstance<IRegexHelper>();
            logger = diContainer.GetInstance<ILogger>();
            //userManager = diContainer.GetInstance<IUserManager>();
            userManager = new UserManager(logger, new Config(), regexHelper, new MockNotif());
        }
コード例 #2
0
 static DIContainerSingleServiceHostFactory()
 {
     DIContainerFactory factory = new DIContainerFactory();
     container = factory.CreateAndLoadDIContainer();
 }