コード例 #1
0
 public GraphCalendarProvider(IGraphAuthenticationProviderFactory graphAuthenticationProviderFactory,
                              StoredConfiguration config,
                              IOptions <CalendarConfigurationOptions> optionsAccessor)
 {
     this.graphAuthenticationProviderFactory = graphAuthenticationProviderFactory;
     this.config = config;
     options     = optionsAccessor.Value;
 }
コード例 #2
0
 public ReminderService(IReminderRepository reminderRepository,
                        ICalendarService calendarService,
                        IButler butler,
                        IOptions <CalendarConfigurationOptions> optionsAccessor)
 {
     this.reminderRepository = reminderRepository;
     this.calendarService    = calendarService;
     this.butler             = butler;
     options = optionsAccessor.Value;
 }
コード例 #3
0
 public GoogleCalendarProvider(StoredConfiguration config, IGoogleCredentialProvider googleCredentialProvider,
                               IOptions <CalendarConfigurationOptions> optionsAccessor, ILogger <GoogleCalendarProvider> logger,
                               GoogleCalendarColorProvider googleCalendarColorProvider)
 {
     this.config = config;
     this.googleCredentialProvider = googleCredentialProvider;
     this.logger = logger;
     _googleCalendarColorProvider = googleCalendarColorProvider;
     options = optionsAccessor.Value;
 }
コード例 #4
0
 public CalendarConfigurationsService(IConfigurationRepository repository,
                                      IOptions <CalendarConfigurationOptions> optionsAccessor,
                                      IGraphAuthenticationProviderFactory authenticationProviderFactory,
                                      ILoggerFactory logger,
                                      IGoogleCredentialProvider googleCredentialProvider)
 {
     this.repository = repository;
     this.authenticationProviderFactory = authenticationProviderFactory;
     this.googleCredentialProvider      = googleCredentialProvider;
     this.logger = logger.CreateLogger("CalendarConfigurationsService");
     options     = optionsAccessor.Value;
 }
コード例 #5
0
 public CalendarService(IConfigurationRepository configurationRepository,
                        IGraphCalendarProviderFactory graphCalendarProviderFactory,
                        IGoogleCalendarProviderFactory googleCalendarProviderFactory,
                        IButler butler,
                        IOptions <CalendarConfigurationOptions> optionsAccessor,
                        ILogger <CalendarService> logger)
 {
     this.configurationRepository       = configurationRepository;
     this.graphCalendarProviderFactory  = graphCalendarProviderFactory;
     this.googleCalendarProviderFactory = googleCalendarProviderFactory;
     this.butler = butler;
     this.logger = logger;
     options     = optionsAccessor.Value;
 }
コード例 #6
0
 public GraphAuthenticationProviderFactory(IConfigurationRepository configurationRepository, IOptions <CalendarConfigurationOptions> optionsAccessor)
 {
     this.configurationRepository = configurationRepository;
     options = optionsAccessor.Value;
 }
コード例 #7
0
 public GraphTokenAuthenticationProvider(IConfigurationRepository configurationRepository, CalendarConfigurationOptions options, StoredConfiguration config)
 {
     this.configurationRepository = configurationRepository;
     this.options = options;
     this.config  = config;
 }
コード例 #8
0
 public GoogleCredentialProvider(IOptions <CalendarConfigurationOptions> options, IConfigurationRepository configurationRepository)
 {
     this.options = options.Value;
     this.configurationRepository = configurationRepository;
 }