Exemplo n.º 1
0
 public SingleDiskFileNameRule(IMetadataMapper metadataMapper, IConfigurationMapper configurationMapper)
     : base(metadataMapper, configurationMapper)
 {
     if (metadataMapper == null)
     {
         throw new ArgumentNullException(nameof(metadataMapper));
     }
     this.m_MetadataMapper = metadataMapper;
 }
Exemplo n.º 2
0
        public ConfigurationLoader(IConfigurationMapper mapper, IDefaultConfigurationNode defaultConfiguration)
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }

            m_Mapper = mapper;
            m_DefaultConfiguration = defaultConfiguration;
        }
Exemplo n.º 3
0
        public ConfigurationLoader(IConfigurationMapper mapper, IDefaultConfigurationNode defaultConfiguration)
        {
            if(mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }

            m_Mapper = mapper;
            m_DefaultConfiguration = defaultConfiguration;
        }
Exemplo n.º 4
0
        public AlbumDirectoryCoverFileRule(IMetadataMapper fileMapper, IConfigurationMapper configurationMapper)
        {
            if (fileMapper == null)
            {
                throw new ArgumentNullException(nameof(fileMapper));
            }
            if (configurationMapper == null)
            {
                throw new ArgumentNullException(nameof(configurationMapper));
            }

            m_FileMapper          = fileMapper;
            m_ConfigurationMapper = configurationMapper;
        }
Exemplo n.º 5
0
        protected FileNameRule(IMetadataMapper metadataMapper, IConfigurationMapper configurationMapper)
        {
            if (configurationMapper == null)
            {
                throw new ArgumentNullException(nameof(configurationMapper));
            }
            if (metadataMapper == null)
            {
                throw new ArgumentNullException(nameof(metadataMapper));
            }

            m_ConfigurationMapper = configurationMapper;
            m_MetadataMapper      = metadataMapper;
        }
Exemplo n.º 6
0
        public PrefixConfigurationMapper(string settingsPrefix, IConfigurationMapper innerMapper)
        {
            if (settingsPrefix == null)
            {
                throw new ArgumentNullException(nameof(settingsPrefix));
            }

            if (innerMapper == null)
            {
                throw new ArgumentNullException(nameof(innerMapper));
            }

            this.m_SettingsPrefix = settingsPrefix;
            this.m_InnerMapper    = innerMapper;
        }
        public PrefixConfigurationMapper(string settingsPrefix, IConfigurationMapper innerMapper)
        {
            if (settingsPrefix == null)
            {
                throw new ArgumentNullException(nameof(settingsPrefix));                
            }

            if (innerMapper == null)
            {
                throw new ArgumentNullException(nameof(innerMapper));                
            }

            this.m_SettingsPrefix = settingsPrefix;
            this.m_InnerMapper = innerMapper;
        }
Exemplo n.º 8
0
        public ConsistencyChecker(IMetadataMapper fileMetadataMapper, IKernel kernel, IConfigurationMapper configurationMapper, IRuleSet ruleSet)
        {
            if (fileMetadataMapper == null)
            {
                throw new ArgumentNullException(nameof(fileMetadataMapper));
            }
            if (kernel == null)
            {
                throw new ArgumentNullException(nameof(kernel));
            }
            if (configurationMapper == null)
            {
                throw new ArgumentNullException(nameof(configurationMapper));
            }
            if (ruleSet == null)
            {
                throw new ArgumentNullException(nameof(ruleSet));
            }

            m_MetadataMapper      = fileMetadataMapper;
            m_Kernel              = kernel;
            m_ConfigurationMapper = configurationMapper;
            m_RuleSet             = ruleSet;
        }
        public ConfigurationController(IConfigurationService service, IConfigurationMapper mapper)
        {
            _service = service;

            _mapper = mapper;
        }