Пример #1
0
 public GraphUpdaterApplication(IMembershipDifferenceCalculator <AzureADUser> differenceCalculator, IGraphGroupRepository graphGroups, ISyncJobRepository syncJobRepository, ILoggingRepository logging)
 {
     _differenceCalculator = differenceCalculator;
     _graphGroups          = graphGroups;
     _syncJobRepo          = syncJobRepository;
     _log = logging;
 }
 public SyncJobTopicsService(
     ILoggingRepository loggingRepository,
     ISyncJobRepository syncJobRepository,
     IServiceBusTopicsRepository serviceBusTopicsRepository,
     IGraphGroupRepository graphGroupRepository,
     IKeyVaultSecret <ISyncJobTopicService> gmmAppId
     )
 {
     _loggingRepository          = loggingRepository ?? throw new ArgumentNullException(nameof(loggingRepository));
     _syncJobRepository          = syncJobRepository ?? throw new ArgumentNullException(nameof(syncJobRepository));
     _serviceBusTopicsRepository = serviceBusTopicsRepository ?? throw new ArgumentNullException(nameof(serviceBusTopicsRepository));
     _graphGroupRepository       = graphGroupRepository ?? throw new ArgumentNullException(nameof(graphGroupRepository));
     _gmmAppId = gmmAppId.Secret;
 }
 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));
 }
Пример #5
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;
 }
 public SyncJobTopicsService(
     ILoggingRepository loggingRepository,
     ISyncJobRepository syncJobRepository,
     IServiceBusTopicsRepository serviceBusTopicsRepository,
     IGraphGroupRepository graphGroupRepository,
     IKeyVaultSecret <ISyncJobTopicService> gmmAppId,
     IMailRepository mailRepository,
     IEmailSenderRecipient emailSenderAndRecipients
     )
 {
     _emailSenderAndRecipients   = emailSenderAndRecipients;
     _loggingRepository          = loggingRepository ?? throw new ArgumentNullException(nameof(loggingRepository));
     _syncJobRepository          = syncJobRepository ?? throw new ArgumentNullException(nameof(syncJobRepository));
     _serviceBusTopicsRepository = serviceBusTopicsRepository ?? throw new ArgumentNullException(nameof(serviceBusTopicsRepository));
     _graphGroupRepository       = graphGroupRepository ?? throw new ArgumentNullException(nameof(graphGroupRepository));
     _gmmAppId       = gmmAppId.Secret;
     _mailRepository = mailRepository ?? throw new ArgumentNullException(nameof(mailRepository));
 }
Пример #7
0
 public SGMembershipCalculator(IGraphGroupRepository graphGroupRepository, IMembershipServiceBusRepository membershipServiceBus, ILoggingRepository logging)
 {
     _graphGroupRepository = graphGroupRepository;
     _membershipServiceBus = membershipServiceBus;
     _log = logging;
 }
 public OrchestratorFunction(ILoggingRepository loggingRepository, IGraphGroupRepository graphGroupRepository, SGMembershipCalculator calculator)
 {
     _log        = loggingRepository;
     _graphGroup = graphGroupRepository;
     _calculator = calculator;
 }
 public SGCrawler(IGraphGroupRepository securityGroupRepository)
 {
     _sgRepo = securityGroupRepository;
 }
 public OrchestratorFunction(ILoggingRepository loggingRepository,
                             IGraphGroupRepository graphGroupRepository)
 {
     _loggingRepository    = loggingRepository ?? throw new ArgumentNullException(nameof(loggingRepository));
     _graphGroupRepository = graphGroupRepository ?? throw new ArgumentNullException(nameof(graphGroupRepository));
 }