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()); }
static DIContainerSingleServiceHostFactory() { DIContainerFactory factory = new DIContainerFactory(); container = factory.CreateAndLoadDIContainer(); }