예제 #1
0
 public ContentMapDefinition(
     CommonMapper commonMapper,
     ILocalizedTextService localizedTextService,
     IContentService contentService,
     IContentTypeService contentTypeService,
     IFileService fileService,
     IUmbracoContextAccessor umbracoContextAccessor,
     IPublishedRouter publishedRouter,
     ILocalizationService localizationService,
     ILogger logger,
     IUserService userService,
     IEntityService entityService,
     AppCaches appCaches)
 {
     _commonMapper           = commonMapper;
     _localizedTextService   = localizedTextService;
     _contentService         = contentService;
     _contentTypeService     = contentTypeService;
     _fileService            = fileService;
     _umbracoContextAccessor = umbracoContextAccessor;
     _publishedRouter        = publishedRouter;
     _localizationService    = localizationService;
     _logger                  = logger;
     _userService             = userService;
     _entityService           = entityService;
     _appCaches               = appCaches;
     _tabsAndPropertiesMapper = new TabsAndPropertiesMapper <IContent>(localizedTextService);
     _stateMapper             = new ContentSavedStateMapper <ContentPropertyDisplay>();
     _basicStateMapper        = new ContentBasicSavedStateMapper <ContentPropertyBasic>();
     _contentVariantMapper    = new ContentVariantMapper(_localizationService, localizedTextService);
 }
예제 #2
0
        public MediaMapDefinition(ILogger logger, CommonMapper commonMapper, IMediaService mediaService, IMediaTypeService mediaTypeService,
                                  ILocalizedTextService localizedTextService)
        {
            _logger           = logger;
            _commonMapper     = commonMapper;
            _mediaService     = mediaService;
            _mediaTypeService = mediaTypeService;

            _tabsAndPropertiesMapper = new TabsAndPropertiesMapper <IMedia>(localizedTextService);
        }