public AmazonFunctionsDryRunChecker(IAmazonFunctions amazonFunctions, IOptionsSource optionsSource)
        {
            if (optionsSource is null)
            {
                throw new ArgumentNullException(nameof(optionsSource));
            }

            _amazonFunctions = amazonFunctions ?? throw new ArgumentNullException(nameof(amazonFunctions));
            _dryRun          = optionsSource.AmazonOptions.DryRun;
        }
Exemple #2
0
 public AmazonFunctionsReliabilityDecorator(IAmazonFunctions amazonFunctions, ILog <IAmazonFunctions> log)
 {
     _inner = amazonFunctions ?? throw new ArgumentNullException(nameof(amazonFunctions));
     _log   = log ?? throw new ArgumentNullException(nameof(log));
 }
 public AmazonFunctionsForSynchronization(IAmazonFunctionsDryRunChecker amazonFunctionsDryRunChecker, IAmazonFunctions amazonFunctions)
 {
     _dryRun    = amazonFunctionsDryRunChecker ?? throw new ArgumentNullException(nameof(amazonFunctionsDryRunChecker));
     _functions = amazonFunctions ?? throw new ArgumentNullException(nameof(amazonFunctions));
 }