public ModuleManager(IocManager iocManager, ModuleFinder moduleFinder) { _modules = new ModuleCollection(); _iocManager = iocManager; _moduleFinder = moduleFinder; //Logger = NullLogger.Instance; }
public UnitOfWorkManager(IocManager iocResolver, ICurrentUnitOfWorkProvider currentUnitOfWorkProvider, IUnitOfWorkDefaultOptions defaultOptions) { _iocResolver = iocResolver; _currentUnitOfWorkProvider = currentUnitOfWorkProvider; _defaultOptions = defaultOptions; }
public void RegisterDependencies() { var LocalIocManager = new IocManager(); // var drInstances = new List<IDependencyRegistrar>(); // ITypeFinder typefinder = new TypeFinder(); // var drTypes = typefinder.Find(e => e.BaseType == typeof(IDependencyRegistrar)); // foreach(var drType in drTypes) //{ // //drInstances.Add((IDependencyRegistrar)Activator.CreateInstance(drType)); // LocalIocManager.Register(drType, DependencyLifeStyle.Transient); //} }
void Application_Start(object sender, EventArgs e) { // 在应用程序启动时运行的代码 AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); RouteConfig.RegisterRoutes(RouteTable.Routes); //初始化一个IOC容器 _container = new WindsorContainer().Install(FromAssembly.This()); var iocManager = new IocManager(_container); //完成IWindsorInstaller接口中的注册 ControllerBuilder.Current.SetControllerFactory(new MyDefaultControllerFactory(iocManager)); RegisterModel(iocManager); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly()); }
public override void Initialize() { IocManager.Register <FakeExternalAuthenticationSource>(DependencyLifeStyle.Transient); }
public override void PreInitialize() { IocManager.AddConventionalRegistrar(new ZeroControllerConventionalRegistrar()); IocManager.Register <StaticResourceConfig>(); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(SprintTekCoreSharedModule).GetAssembly()); }
internal ConventionalRegistrationContext(Assembly assembly, IocManager iocManager, ConventionalRegistrationConfig config) { Assembly = assembly; IocManager = iocManager; Config = config; }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(taskManagerCoreModule).GetAssembly()); }
public StartupConfiguration(IocManager iocManager) { IocManager = iocManager; }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(L11_HelloWorkWebCoreModule).GetAssembly()); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(AngularBlogEntityFrameworkModule).GetAssembly()); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(PhonebookCore2EntityFrameworkModule).GetAssembly()); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(FinancialBusinessSystemEntityFrameworkModule).GetAssembly()); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(JiraDashboardWebHostModule).GetAssembly()); }
protected override ICache CreateCacheImplementation(string name) { var provider = IocManager.Resolve <IRedisCacheProvider>(); return(new RedisCache(name, provider)); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(GemStockpilesWebHostModule).GetAssembly()); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(InfomationSystemWebHostModule).GetAssembly()); }
public override void PostInitialize() { IocManager.Resolve <ApplicationPartManager>() .AddApplicationPartsIfNotAddedBefore(typeof(LMSWebCoreModule).Assembly); }
public DefaultUserContext(IPrincipalAccessor principalAccessor, IocManager iocManager, ILogger log) { _principalAccessor = principalAccessor; _iocManager = iocManager; Log = log; }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(WorkFlowDictionaryModule).GetAssembly()); }
public override void PostInitialize() { IocManager.Resolve <AppTimes>().StartupTime = Clock.Now; }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(AbpProjectNameWebHostModule).GetAssembly()); }
public AuthorizationInterceptor(IocManager iocResolver) { _iocResolver = iocResolver; }
public YBootstrapper(IocManager iocManager) { IocManager = iocManager; }
public AdoUnitOfWork(IocManager iocManager) { _iocResolver = iocManager; _activeDbContexts = new Dictionary<Type, IDbContext>(); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(FirstBoilerPlateAppWebHostModule).GetAssembly()); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(AbpDemoTestModule).GetAssembly()); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(CmsFeatureWebHostModule).GetAssembly()); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(MCSMigratorModule).GetAssembly()); ServiceCollectionRegistrar.Register(IocManager); }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(MahjongWebMvcModule).GetAssembly()); }
public static void Initialize(IocManager iocManager) { iocManager.IocContainer.Kernel.ComponentRegistered += KernelOnComponentRegistered; }
public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(IdentityServerWithEfCoreDemoWebMvcModule).GetAssembly()); }