Esempio n. 1
0
 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 SGMembershipCalculator(IGraphGroupRepository graphGroupRepository,
                               IMembershipServiceBusRepository membershipServiceBus,
                               IMailRepository mail,
                               IEmailSenderRecipient emailSenderAndRecipients,
                               ISyncJobRepository syncJob,
                               ILoggingRepository logging,
                               IDryRunValue dryRun
                               )
 {
     _graphGroupRepository = graphGroupRepository;
     _membershipServiceBus = membershipServiceBus;
     _log     = logging;
     _mail    = mail;
     _syncJob = syncJob;
     _emailSenderAndRecipients     = emailSenderAndRecipients;
     _isSecurityGroupDryRunEnabled = dryRun.DryRunEnabled;
 }
 public GraphUpdaterService(
     ILoggingRepository loggingRepository,
     TelemetryClient telemetryClient,
     IGraphGroupRepository graphGroupRepository,
     IMailRepository mailRepository,
     IEmailSenderRecipient emailSenderAndRecipients,
     ISyncJobRepository syncJobRepository,
     IDryRunValue dryRun)
 {
     _loggingRepository           = loggingRepository ?? throw new ArgumentNullException(nameof(loggingRepository));
     _telemetryClient             = telemetryClient ?? throw new ArgumentNullException(nameof(telemetryClient));
     _graphGroupRepository        = graphGroupRepository ?? throw new ArgumentNullException(nameof(graphGroupRepository));
     _mailRepository              = mailRepository ?? throw new ArgumentNullException(nameof(mailRepository));
     _emailSenderAndRecipients    = emailSenderAndRecipients ?? throw new ArgumentNullException(nameof(emailSenderAndRecipients));
     _syncJobRepository           = syncJobRepository ?? throw new ArgumentNullException(nameof(syncJobRepository));
     _isGraphUpdaterDryRunEnabled = _loggingRepository.DryRun = dryRun != null ? dryRun.DryRunEnabled : throw new ArgumentNullException(nameof(dryRun));
 }
Esempio n. 4
0
 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 StarterFunction(ILoggingRepository loggingRepository, ISyncJobRepository syncJob, IDryRunValue dryRun)
 {
     _log     = loggingRepository;
     _syncJob = syncJob;
     _isSecurityGroupDryRunEnabled = dryRun.DryRunEnabled;
 }