private void InjectDependencies(IServiceCollection services) { var installer = new DomainInstaller(Configuration); installer.Install(services); services.AddTransient <IValidator <Product>, ProductValidator>(); }
private void InjectDependences(IServiceCollection services) { var domainInstaller = new DomainInstaller(Configuration); domainInstaller.Install(services); services.AddTransient <IValidator <Product>, ProductValidator>(); services.AddSingleton <IImageCache, InMemoryImageCache>(); }