/// <summary> /// Initializes a new instance of the <see cref="ManifestParser" /> class. /// </summary> public ManifestParser( AppCaches appCaches, ManifestValueValidatorCollection validators, ManifestFilterCollection filters, ILogger <ManifestParser> logger, IIOHelper ioHelper, IHostingEnvironment hostingEnvironment, IJsonSerializer jsonSerializer, ILocalizedTextService localizedTextService, IShortStringHelper shortStringHelper, IDataValueEditorFactory dataValueEditorFactory) { if (appCaches == null) { throw new ArgumentNullException(nameof(appCaches)); } _cache = appCaches.RuntimeCache; _validators = validators ?? throw new ArgumentNullException(nameof(validators)); _filters = filters ?? throw new ArgumentNullException(nameof(filters)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _ioHelper = ioHelper; _hostingEnvironment = hostingEnvironment; AppPluginsPath = "~/App_Plugins"; _jsonSerializer = jsonSerializer; _localizedTextService = localizedTextService; _shortStringHelper = shortStringHelper; _dataValueEditorFactory = dataValueEditorFactory; }
/// <summary> /// Initializes a new instance of the <see cref="ManifestParser"/> class. /// </summary> private ManifestParser(IRuntimeCacheProvider cache, ManifestValueValidatorCollection validators, string path, ILogger logger) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _validators = validators ?? throw new ArgumentNullException(nameof(validators)); if (string.IsNullOrWhiteSpace(path)) { throw new ArgumentNullOrEmptyException(nameof(path)); } Path = path; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public TagsPropertyEditor( IDataValueEditorFactory dataValueEditorFactory, ManifestValueValidatorCollection validators, IIOHelper ioHelper, ILocalizedTextService localizedTextService, IEditorConfigurationParser editorConfigurationParser) : base(dataValueEditorFactory) { _validators = validators; _ioHelper = ioHelper; _localizedTextService = localizedTextService; _editorConfigurationParser = editorConfigurationParser; }
public TagsPropertyEditor( IDataValueEditorFactory dataValueEditorFactory, ManifestValueValidatorCollection validators, IIOHelper ioHelper, ILocalizedTextService localizedTextService) : this( dataValueEditorFactory, validators, ioHelper, localizedTextService, StaticServiceProvider.Instance.GetRequiredService <IEditorConfigurationParser>()) { }
/// <summary> /// Initializes a new instance of the <see cref="ManifestParser"/> class. /// </summary> private ManifestParser(AppCaches appCaches, ManifestValueValidatorCollection validators, string path, ILogger logger) { if (appCaches == null) { throw new ArgumentNullException(nameof(appCaches)); } _cache = appCaches.RuntimeCache; _validators = validators ?? throw new ArgumentNullException(nameof(validators)); if (string.IsNullOrWhiteSpace(path)) { throw new ArgumentNullOrEmptyException(nameof(path)); } Path = path; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="ManifestParser"/> class. /// </summary> public ManifestParser( AppCaches appCaches, ManifestValueValidatorCollection validators, ManifestFilterCollection filters, ILogger <ManifestParser> logger, IIOHelper ioHelper, IHostingEnvironment hostingEnvironment, IJsonSerializer jsonSerializer, ILocalizedTextService localizedTextService, IShortStringHelper shortStringHelper, IDataValueEditorFactory dataValueEditorFactory) : this(appCaches, validators, filters, "~/App_Plugins", logger, ioHelper, hostingEnvironment) { _jsonSerializer = jsonSerializer; _localizedTextService = localizedTextService; _shortStringHelper = shortStringHelper; _dataValueEditorFactory = dataValueEditorFactory; }
/// <summary> /// Initializes a new instance of the <see cref="ManifestParser"/> class. /// </summary> private ManifestParser(AppCaches appCaches, ManifestValueValidatorCollection validators, ManifestFilterCollection filters, string path, ILogger logger) { if (appCaches == null) { throw new ArgumentNullException(nameof(appCaches)); } _cache = appCaches.RuntimeCache; _validators = validators ?? throw new ArgumentNullException(nameof(validators)); _filters = filters ?? throw new ArgumentNullException(nameof(filters)); if (path == null) { throw new ArgumentNullException(nameof(path)); } if (string.IsNullOrWhiteSpace(path)) { throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(path)); } Path = path; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="ManifestParser"/> class. /// </summary> private ManifestParser(AppCaches appCaches, ManifestValueValidatorCollection validators, ManifestFilterCollection filters, string appPluginsPath, ILogger <ManifestParser> logger, IIOHelper ioHelper, IHostingEnvironment hostingEnvironment) { if (appCaches == null) { throw new ArgumentNullException(nameof(appCaches)); } _cache = appCaches.RuntimeCache; _validators = validators ?? throw new ArgumentNullException(nameof(validators)); _filters = filters ?? throw new ArgumentNullException(nameof(filters)); if (appPluginsPath == null) { throw new ArgumentNullException(nameof(appPluginsPath)); } if (string.IsNullOrWhiteSpace(appPluginsPath)) { throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(appPluginsPath)); } _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _ioHelper = ioHelper; _hostingEnvironment = hostingEnvironment; AppPluginsPath = appPluginsPath; }
public TagsPropertyEditor(ManifestValueValidatorCollection validators, ILogger logger) : base(logger) { _validators = validators; }
/// <summary> /// Initializes a new instance of the <see cref="ValueValidatorConverter" /> class. /// </summary> public ValueValidatorConverter(ManifestValueValidatorCollection validators) => _validators = validators;
public TagConfigurationEditor(ManifestValueValidatorCollection validators) { Field(nameof(TagConfiguration.Group)).Validators.Add(new RequiredValidator()); Field(nameof(TagConfiguration.StorageType)).Validators.Add(new RequiredValidator()); }
/// <summary> /// Initializes a new instance of the <see cref="ManifestParser"/> class. /// </summary> public ManifestParser(AppCaches appCaches, ManifestValueValidatorCollection validators, ILogger logger) : this(appCaches, validators, "~/App_Plugins", logger) { }
public TagConfigurationEditor(ManifestValueValidatorCollection validators, IIOHelper ioHelper, ILocalizedTextService localizedTextService, IEditorConfigurationParser editorConfigurationParser) : base(ioHelper, editorConfigurationParser) { Field(nameof(TagConfiguration.Group)).Validators.Add(new RequiredValidator(localizedTextService)); Field(nameof(TagConfiguration.StorageType)).Validators.Add(new RequiredValidator(localizedTextService)); }
public TagConfigurationEditor(ManifestValueValidatorCollection validators, IIOHelper ioHelper, ILocalizedTextService localizedTextService) : this(validators, ioHelper, localizedTextService, StaticServiceProvider.Instance.GetRequiredService <IEditorConfigurationParser>()) { }
/// <summary> /// Initializes a new instance of the <see cref="ManifestParser"/> class. /// </summary> public ManifestParser(IRuntimeCacheProvider cache, ManifestValueValidatorCollection validators, ILogger logger) : this(cache, validators, "~/App_Plugins", logger) { }