Пример #1
0
        private void InjectDependencies(IServiceCollection services)
        {
            var installer = new DomainInstaller(Configuration);

            installer.Install(services);

            services.AddTransient <IValidator <Product>, ProductValidator>();
        }
Пример #2
0
 protected override void OnSaveFormCompleted(bool newentity)
 {
     if (newentity)
     {
         var conf = new DomainInstaller(Item);
         conf.GenerateDefaultChildren();
     }
 }
Пример #3
0
        private void InjectDependences(IServiceCollection services)
        {
            var domainInstaller = new DomainInstaller(Configuration);

            domainInstaller.Install(services);

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