public JobStatusUpdaterFunction( ILoggingRepository loggingRepository, IGraphUpdaterService graphUpdaterService) { _loggingRepository = loggingRepository ?? throw new ArgumentNullException(nameof(loggingRepository)); _graphUpdaterService = graphUpdaterService ?? throw new ArgumentNullException(nameof(graphUpdaterService)); }
public OrchestratorFunction( ILoggingRepository loggingRepository, TelemetryClient telemetryClient, IGraphUpdaterService graphUpdaterService, IDryRunValue dryRun, IEmailSenderRecipient emailSenderAndRecipients, IThresholdConfig thresholdConfig) { _telemetryClient = telemetryClient ?? throw new ArgumentNullException(nameof(telemetryClient)); _graphUpdaterService = graphUpdaterService ?? throw new ArgumentNullException(nameof(graphUpdaterService)); _isDryRunEnabled = loggingRepository.DryRun = dryRun != null ? dryRun.DryRunEnabled : throw new ArgumentNullException(nameof(dryRun)); _emailSenderAndRecipients = emailSenderAndRecipients ?? throw new ArgumentNullException(nameof(emailSenderAndRecipients)); _thresholdConfig = thresholdConfig ?? throw new ArgumentNullException(nameof(thresholdConfig)); }
public DeltaCalculatorService( IMembershipDifferenceCalculator <AzureADUser> differenceCalculator, ISyncJobRepository syncJobRepository, ILoggingRepository loggingRepository, IEmailSenderRecipient emailSenderAndRecipients, IGraphUpdaterService graphUpdaterService, IDryRunValue dryRun, IThresholdConfig thresholdConfig, IGMMResources gmmResources, ILocalizationRepository localizationRepository ) { _emailSenderAndRecipients = emailSenderAndRecipients ?? throw new ArgumentNullException(nameof(emailSenderAndRecipients)); _differenceCalculator = differenceCalculator ?? throw new ArgumentNullException(nameof(differenceCalculator)); _syncJobRepository = syncJobRepository ?? throw new ArgumentNullException(nameof(syncJobRepository)); _loggingRepository = loggingRepository ?? throw new ArgumentNullException(nameof(loggingRepository)); _isGraphUpdaterDryRunEnabled = _loggingRepository.DryRun = dryRun != null ? dryRun.DryRunEnabled : throw new ArgumentNullException(nameof(dryRun)); _graphUpdaterService = graphUpdaterService ?? throw new ArgumentNullException(nameof(graphUpdaterService)); _thresholdConfig = thresholdConfig ?? throw new ArgumentNullException(nameof(thresholdConfig)); _gmmResources = gmmResources ?? throw new ArgumentNullException(nameof(gmmResources)); _localizationRepository = localizationRepository ?? throw new ArgumentNullException(nameof(localizationRepository)); }
public UsersReaderFunction(ILoggingRepository loggingRepository, IGraphUpdaterService usersReaderService) { _loggingRepository = loggingRepository ?? throw new ArgumentNullException(nameof(loggingRepository)); _usersReaderService = usersReaderService ?? throw new ArgumentNullException(nameof(usersReaderService)); }
public GroupValidatorFunction(ILoggingRepository loggingRepository, IGraphUpdaterService graphUpdaterService, IEmailSenderRecipient emailSenderAndRecipients) { _loggingRepository = loggingRepository ?? throw new ArgumentNullException(nameof(loggingRepository)); _graphUpdaterService = graphUpdaterService ?? throw new ArgumentNullException(nameof(graphUpdaterService)); _emailSenderAndRecipients = emailSenderAndRecipients ?? throw new ArgumentNullException(nameof(emailSenderAndRecipients)); }