private void InjectDependencies(IServiceCollection services) { var installer = new DomainInstaller(Configuration); installer.Install(services); services.AddTransient <IValidator <Product>, ProductValidator>(); }
protected override void OnSaveFormCompleted(bool newentity) { if (newentity) { var conf = new DomainInstaller(Item); conf.GenerateDefaultChildren(); } }
private void InjectDependences(IServiceCollection services) { var domainInstaller = new DomainInstaller(Configuration); domainInstaller.Install(services); services.AddTransient <IValidator <Product>, ProductValidator>(); services.AddSingleton <IImageCache, InMemoryImageCache>(); }