public CookieHttpHandler(JdaPersonaOptions options, CredentialsModel credentials, string teamId, bool expireToken = false)
        {
            _options     = options;
            _credentials = credentials;
            _teamId      = teamId;

            if (expireToken)
            {
                ExpireToken();
            }
        }
示例#2
0
 public ConfigTrigger(MicrosoftGraphOptions microsoftGraphOptions, JdaPersonaOptions jdaPersonaOptions, IScheduleConnectorService scheduleConnectorService)
 {
     _microsoftGraphOptions    = microsoftGraphOptions ?? throw new ArgumentNullException(nameof(microsoftGraphOptions));
     _jdaPersonaOptions        = jdaPersonaOptions ?? throw new ArgumentNullException(nameof(jdaPersonaOptions));
     _scheduleConnectorService = scheduleConnectorService ?? throw new ArgumentNullException(nameof(scheduleConnectorService));
 }
示例#3
0
 public JdaPersonaScheduleSourceService(JdaPersonaOptions options, IHttpClientFactory httpClientFactory)
 {
     _options           = options ?? throw new ArgumentNullException(nameof(options));
     _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
 }