Esempio n. 1
0
 public ConfigurationNameSelector([NotNull] ITokenUsageTracker tokenUsageTracker)
 {
     if (tokenUsageTracker == null)
     {
         throw new ArgumentNullException(nameof(tokenUsageTracker));
     }
     _tokenUsageTracker = tokenUsageTracker;
 }
Esempio n. 2
0
 public TokenReplacer([NotNull] ITokenUsageTracker tokenUsageTracker)
 {
     _tokenUsageTracker = tokenUsageTracker;
     if (tokenUsageTracker == null)
     {
         throw new ArgumentNullException(nameof(tokenUsageTracker));
     }
 }
 public ConfigGenNodeProcessorFactory([NotNull] ITokenUsageTracker tokenUsageTracker)
 {
     if (tokenUsageTracker == null)
     {
         throw new ArgumentNullException(nameof(tokenUsageTracker));
     }
     _tokenUsageTracker = tokenUsageTracker;
 }
Esempio n. 4
0
        protected ConditionalElementProcessorBase([NotNull] ITokenUsageTracker tokenUsageTracker)
        {
            if (tokenUsageTracker == null)
            {
                throw new ArgumentNullException(nameof(tokenUsageTracker));
            }

            _tokenUsageTracker = tokenUsageTracker;
        }
        public ApplyElementProcessor(
            [NotNull] IConfigurationExpressionEvaluator configurationExpressionEvaluator,
            [NotNull] ITokenUsageTracker tokenUsageTracker)
            : base(tokenUsageTracker)
        {
            if (configurationExpressionEvaluator == null)
            {
                throw new ArgumentNullException(nameof(configurationExpressionEvaluator));
            }

            _configurationExpressionEvaluator = configurationExpressionEvaluator;
        }
Esempio n. 6
0
 public RazorTemplate(
     [NotNull] ITokenUsageTracker tokenUsageTracker,
     [NotNull] IPreferencesManager preferencesManager)
 {
     if (tokenUsageTracker == null)
     {
         throw new ArgumentNullException(nameof(tokenUsageTracker));
     }
     if (preferencesManager == null)
     {
         throw new ArgumentNullException(nameof(preferencesManager));
     }
     _tokenUsageTracker  = tokenUsageTracker;
     _preferencesManager = preferencesManager;
 }
 public ApplyWhenAttributeProcessor(
     [NotNull] IConfigurationExpressionEvaluator evaluator,
     [NotNull] ITokenUsageTracker tokenUsageTracker)
 {
     if (evaluator == null)
     {
         throw new ArgumentNullException(nameof(evaluator));
     }
     if (tokenUsageTracker == null)
     {
         throw new ArgumentNullException(nameof(tokenUsageTracker));
     }
     _evaluator         = evaluator;
     _tokenUsageTracker = tokenUsageTracker;
 }
        public TokenValueMatchEvaluator(
            [NotNull] IConfiguration configuration,
            [NotNull] ITokenUsageTracker tokenUsageTracker,
            [NotNull] string tokenMatchGroupName)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }
            if (tokenUsageTracker == null)
            {
                throw new ArgumentNullException(nameof(tokenUsageTracker));
            }
            if (tokenMatchGroupName == null)
            {
                throw new ArgumentNullException(nameof(tokenMatchGroupName));
            }

            _configuration       = configuration;
            _tokenUsageTracker   = tokenUsageTracker;
            _tokenMatchGroupName = tokenMatchGroupName;
        }
Esempio n. 9
0
        public GenerationService(
            [NotNull] IConfigurationGenerator generator,
            [NotNull] IPreferencesManager preferencesManager,
            [NotNull] ITokenUsageTracker tokenUsageTracker)
        {
            if (generator == null)
            {
                throw new ArgumentNullException(nameof(generator));
            }
            if (preferencesManager == null)
            {
                throw new ArgumentNullException(nameof(preferencesManager));
            }
            if (tokenUsageTracker == null)
            {
                throw new ArgumentNullException(nameof(tokenUsageTracker));
            }

            _generator          = generator;
            _preferencesManager = preferencesManager;
            _tokenUsageTracker  = tokenUsageTracker;
        }