예제 #1
0
        private void InjectDependencies(IServiceCollection services)
        {
            var installer = new DomainInstaller(Configuration);

            installer.Install(services);

            services.AddTransient <IValidator <Product>, ProductValidator>();
        }
예제 #2
0
        private void InjectDependences(IServiceCollection services)
        {
            var domainInstaller = new DomainInstaller(Configuration);

            domainInstaller.Install(services);

            services.AddTransient <IValidator <Product>, ProductValidator>();
            services.AddSingleton <IImageCache, InMemoryImageCache>();
        }