public CleanupRemoteEnvironment(IProgressSupport progressSupport, IConfiguration configuration,
                                 ISystemUtils systemUtils)
 {
     _progressSupport = progressSupport;
     _configuration   = configuration;
     _systemUtils     = systemUtils;
 }
예제 #2
0
 public MsalBackgroundRequest(
     WebRequestManager webRequestManager,
     CacheManager cacheManager,
     ISystemUtils systemUtils,
     AuthenticationParameters authParameters)
 {
     _webRequestManager = webRequestManager;
     _cacheManager      = cacheManager;
     _authParameters    = authParameters;
     _systemUtils       = systemUtils;
 }
예제 #3
0
 public NetFrameworkLogger(
     ISystemUtils systemUtils,
     Guid correlationId,
     MsalClientConfiguration msalClientConfiguration,
     ITimeService timeService = null)
 {
     _systemUtils             = systemUtils;
     CorrelationId            = correlationId;
     _msalClientConfiguration = msalClientConfiguration ??
                                throw new ArgumentNullException(nameof(msalClientConfiguration));
     _timeService = timeService ?? new TimeService();
 }
예제 #4
0
        public WebRequestManager(
            IHttpManager httpManager,
            ISystemUtils systemUtils,
            EnvironmentMetadata environmentMetadata,
            AuthenticationParameters authenticationParameters)
        {
            _httpManager              = httpManager;
            _systemUtils              = systemUtils;
            _environmentMetadata      = environmentMetadata;
            _authenticationParameters = authenticationParameters;

            _authenticationParameters.AddScope(OAuth2Scope.OpenId);
            _authenticationParameters.AddScope(OAuth2Scope.OfflineAccess);
            _authenticationParameters.AddScope(OAuth2Scope.Profile);
        }