Exemple #1
0
 public GraphUpdaterApplication(IMembershipDifferenceCalculator <AzureADUser> differenceCalculator, IGraphGroupRepository graphGroups, ISyncJobRepository syncJobRepository, ILoggingRepository logging)
 {
     _differenceCalculator = differenceCalculator;
     _graphGroups          = graphGroups;
     _syncJobRepo          = syncJobRepository;
     _log = logging;
 }
Exemple #2
0
 public GraphUpdaterApplication(
     IMembershipDifferenceCalculator <AzureADUser> differenceCalculator,
     IGraphGroupRepository graphGroups,
     ISyncJobRepository syncJobRepository,
     ILoggingRepository logging,
     IMailRepository mailRepository,
     IGraphGroupRepository graphGroupRepository,
     IEmailSenderRecipient emailSenderAndRecipients
     )
 {
     _emailSenderAndRecipients = emailSenderAndRecipients;
     _differenceCalculator     = differenceCalculator;
     _graphGroups          = graphGroups;
     _syncJobRepo          = syncJobRepository;
     _log                  = logging;
     _mailRepository       = mailRepository;
     _graphGroupRepository = graphGroupRepository;
 }
Exemple #3
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));
 }