Exemplo n.º 1
0
 public AttributeDeleter(IAppContext appContext
                         , IAttributeRepository attributeRepository
                         , IEntityFinder entityFinder
                         , ILocalizedLabelService localizedLabelService
                         , IMetadataService metadataService
                         , IAttributeDependency dependencyService
                         , IDependencyChecker dependencyChecker
                         , IEventPublisher eventPublisher
                         , IEnumerable <ICascadeDelete <Domain.Attribute> > cascadeDeletes)
 {
     _appContext          = appContext;
     _attributeRepository = attributeRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService = localizedLabelService;
     _entityFinder          = entityFinder;
     _metadataService       = metadataService;
     _dependencyService     = dependencyService;
     _dependencyChecker     = dependencyChecker;
     _eventPublisher        = eventPublisher;
     _cascadeDeletes        = cascadeDeletes;
     _cacheService          = new Caching.CacheManager <Domain.Attribute>(_appContext.OrganizationUniqueName + ":attributes", _appContext.PlatformSettings.CacheEnabled);
 }
Exemplo n.º 2
0
 public AttributeCreater(IAppContext appContext
                         , IAttributeRepository attributeRepository
                         , IEntityFinder entityFinder
                         , IRelationShipCreater relationShipCreater
                         , IOptionSetCreater optionSetCreater
                         , IStringMapCreater stringMapCreater
                         , ILocalizedLabelBatchBuilder localizedLabelService
                         , IMetadataService metadataService
                         , IDefaultAttributeProvider defaultAttributeProvider
                         , IAttributeDependency dependencyService)
 {
     _appContext          = appContext;
     _attributeRepository = attributeRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService    = localizedLabelService;
     _entityFinder             = entityFinder;
     _relationShipCreater      = relationShipCreater;
     _optionSetCreater         = optionSetCreater;
     _stringMapCreater         = stringMapCreater;
     _cacheService             = new Caching.CacheManager <Domain.Attribute>(_appContext.OrganizationUniqueName + ":attributes", AttributeCache.BuildKey);
     _metadataService          = metadataService;
     _defaultAttributeProvider = defaultAttributeProvider;
     _dependencyService        = dependencyService;
 }