示例#1
0
        public TopicViewProvider(
            IStringLocalizer stringLocalizer,
            IEntityCategoryStore <EntityCategory> entityCategoryStore,
            ICategoryDetailsUpdater categoryDetailsUpdater,
            IEntityCategoryManager entityCategoryManager,
            IHttpContextAccessor httpContextAccessor,
            ICategoryStore <Category> categoryStore,
            IBreadCrumbManager breadCrumbManager,
            IPostManager <Topic> entityManager,
            IEntityStore <Topic> entityStore,
            IFeatureFacade featureFacade,
            IContextFacade contextFacade)
        {
            _request = httpContextAccessor.HttpContext.Request;
            _entityCategoryManager  = entityCategoryManager;
            _categoryDetailsUpdater = categoryDetailsUpdater;
            _entityCategoryStore    = entityCategoryStore;
            _breadCrumbManager      = breadCrumbManager;
            _featureFacade          = featureFacade;
            _entityManager          = entityManager;
            _contextFacade          = contextFacade;
            _categoryStore          = categoryStore;
            _entityStore            = entityStore;

            T = stringLocalizer;
            S = stringLocalizer;
        }
示例#2
0
 public EntityCategoryManager(
     IEntityCategoryStore <EntityCategory> entityCategoryStore,
     IBroker broker)
 {
     _entityCategoryStore = entityCategoryStore;
     _broker = broker;
 }