Exemple #1
0
 public MemberTypeController(
     ICultureDictionary cultureDictionary,
     EditorValidatorCollection editorValidatorCollection,
     IContentTypeService contentTypeService,
     IMediaTypeService mediaTypeService,
     IMemberTypeService memberTypeService,
     IUmbracoMapper umbracoMapper,
     ILocalizedTextService localizedTextService,
     IBackOfficeSecurityAccessor backofficeSecurityAccessor,
     IShortStringHelper shortStringHelper)
     : base(cultureDictionary,
            editorValidatorCollection,
            contentTypeService,
            mediaTypeService,
            memberTypeService,
            umbracoMapper,
            localizedTextService)
 {
     _memberTypeService          = memberTypeService ?? throw new ArgumentNullException(nameof(memberTypeService));
     _backofficeSecurityAccessor = backofficeSecurityAccessor ?? throw new ArgumentNullException(nameof(backofficeSecurityAccessor));
     _shortStringHelper          = shortStringHelper ?? throw new ArgumentNullException(nameof(shortStringHelper));
     _umbracoMapper        = umbracoMapper ?? throw new ArgumentNullException(nameof(umbracoMapper));
     _localizedTextService =
         localizedTextService ?? throw new ArgumentNullException(nameof(localizedTextService));
 }
Exemple #2
0
 protected ContentTypeControllerBase(
     ICultureDictionary cultureDictionary,
     EditorValidatorCollection editorValidatorCollection,
     IContentTypeService contentTypeService,
     IMediaTypeService mediaTypeService,
     IMemberTypeService memberTypeService,
     IUmbracoMapper umbracoMapper,
     ILocalizedTextService localizedTextService)
 {
     _editorValidatorCollection = editorValidatorCollection ?? throw new ArgumentNullException(nameof(editorValidatorCollection));
     CultureDictionary          = cultureDictionary ?? throw new ArgumentNullException(nameof(cultureDictionary));
     ContentTypeService         = contentTypeService ?? throw new ArgumentNullException(nameof(contentTypeService));
     MediaTypeService           = mediaTypeService ?? throw new ArgumentNullException(nameof(mediaTypeService));
     MemberTypeService          = memberTypeService ?? throw new ArgumentNullException(nameof(memberTypeService));
     UmbracoMapper        = umbracoMapper ?? throw new ArgumentNullException(nameof(umbracoMapper));
     LocalizedTextService = localizedTextService ?? throw new ArgumentNullException(nameof(localizedTextService));
 }
Exemple #3
0
 public ContentTypeController(
     ICultureDictionary cultureDictionary,
     IContentTypeService contentTypeService,
     IMediaTypeService mediaTypeService,
     IMemberTypeService memberTypeService,
     IUmbracoMapper umbracoMapper,
     ILocalizedTextService localizedTextService,
     IEntityXmlSerializer serializer,
     PropertyEditorCollection propertyEditors,
     IBackOfficeSecurityAccessor backofficeSecurityAccessor,
     IDataTypeService dataTypeService,
     IShortStringHelper shortStringHelper,
     IFileService fileService,
     ILogger <ContentTypeController> logger,
     IContentService contentService,
     IContentTypeBaseServiceProvider contentTypeBaseServiceProvider,
     IHostingEnvironment hostingEnvironment,
     EditorValidatorCollection editorValidatorCollection,
     PackageDataInstallation packageDataInstallation)
     : base(
         cultureDictionary,
         editorValidatorCollection,
         contentTypeService,
         mediaTypeService,
         memberTypeService,
         umbracoMapper,
         localizedTextService)
 {
     _serializer                 = serializer;
     _propertyEditors            = propertyEditors;
     _contentTypeService         = contentTypeService;
     _umbracoMapper              = umbracoMapper;
     _backofficeSecurityAccessor = backofficeSecurityAccessor;
     _dataTypeService            = dataTypeService;
     _shortStringHelper          = shortStringHelper;
     _localizedTextService       = localizedTextService;
     _fileService                = fileService;
     _logger         = logger;
     _contentService = contentService;
     _contentTypeBaseServiceProvider = contentTypeBaseServiceProvider;
     _hostingEnvironment             = hostingEnvironment;
     _packageDataInstallation        = packageDataInstallation;
 }