Exemplo n.º 1
0
        private void InjectDependencies(IServiceCollection services)
        {
            var installer = new DomainInstaller(Configuration);

            installer.Install(services);

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

            domainInstaller.Install(services);

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