Beispiel #1
0
 /// <summary>
 /// Construct a <see cref="TravisContinuousIntegration"/>
 /// </summary>
 /// <param name="_logger">The value of <see cref="logger"/></param>
 /// <param name="_gitHubManager">The value of <see cref="gitHubManager"/></param>
 /// <param name="_requestManager">The value of <see cref="requestManager"/></param>
 /// <param name="travisConfigurationOptions">The <see cref="IOptions{TOptions}"/> containing the value of <see cref="travisConfiguration"/></param>
 public TravisContinuousIntegration(ILogger <TravisContinuousIntegration> _logger, IGitHubManager _gitHubManager, IWebRequestManager _requestManager, IOptions <TravisConfiguration> travisConfigurationOptions)
 {
     logger = _logger ?? throw new ArgumentNullException(nameof(_logger));
     travisConfiguration = travisConfigurationOptions?.Value ?? throw new ArgumentNullException(nameof(travisConfigurationOptions));
     gitHubManager       = _gitHubManager ?? throw new ArgumentNullException(nameof(_gitHubManager));
     requestManager      = _requestManager ?? throw new ArgumentNullException(nameof(_requestManager));
 }
        /// <summary>
        /// Construct a <see cref="GitHubClientFactory"/>
        /// </summary>
        /// <param name="gitHubConfigurationOptions">The <see cref="IOptions{TOptions}"/> containing the value of <see cref="gitHubConfiguration"/></param>
        /// <param name="webRequestManager">The value of <see cref="webRequestManager"/></param>
        /// <param name="logger">The value of <see cref="logger"/></param>
        public GitHubClientFactory(IOptions <GitHubConfiguration> gitHubConfigurationOptions, IWebRequestManager webRequestManager, ILogger <GitHubClientFactory> logger)
        {
            gitHubConfiguration    = gitHubConfigurationOptions?.Value ?? throw new ArgumentNullException(nameof(gitHubConfigurationOptions));
            this.webRequestManager = webRequestManager ?? throw new ArgumentNullException(nameof(webRequestManager));
            this.logger            = logger ?? throw new ArgumentNullException(nameof(logger));

            httpClientAdapter = new HttpClientAdapter(HttpMessageHandlerFactory.CreateDefault);
        }
Beispiel #3
0
        /// <summary>
        /// 游戏框架组件初始化。
        /// </summary>
        public WebRequestComponent()
        {
            m_WebRequestManager = GameFrameworkEntry.GetModule <IWebRequestManager>();
            if (m_WebRequestManager == null)
            {
                Log.Fatal("Web request manager is invalid.");
                return;
            }

            m_WebRequestManager.Timeout            = m_Timeout;
            m_WebRequestManager.WebRequestStart   += OnWebRequestStart;
            m_WebRequestManager.WebRequestSuccess += OnWebRequestSuccess;
            m_WebRequestManager.WebRequestFailure += OnWebRequestFailure;
        }
Beispiel #4
0
        /// <summary>
        /// 游戏框架组件初始化。
        /// </summary>
        protected override void Awake()
        {
            base.Awake();

            m_WebRequestManager = GameFrameworkEntry.GetModule <IWebRequestManager>();
            if (m_WebRequestManager == null)
            {
                Log.Fatal("Web request manager is invalid.");
                return;
            }

            m_WebRequestManager.Timeout            = m_Timeout;
            m_WebRequestManager.WebRequestStart   += OnWebRequestStart;
            m_WebRequestManager.WebRequestSuccess += OnWebRequestSuccess;
            m_WebRequestManager.WebRequestFailure += OnWebRequestFailure;
        }
 public HttpProtocolProvider(IWebRequestManager webRequestManager)
 {
     m_WebRequestManager = webRequestManager;
 }
Beispiel #6
0
 public ExternalIdentityProviderService(IWebRequestManager webRequestManager, IServiceConfigManager serviceConfigManager)
 {
     _webRequestManager    = webRequestManager;
     _serviceConfigManager = serviceConfigManager;
 }
Beispiel #7
0
 public AdfService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #8
0
 public SuperLoggingService(IWebRequestManager webRequestManager, IServiceConfigManager serviceConfigManager)
 {
     _webRequestManager    = webRequestManager;
     _serviceConfigManager = serviceConfigManager;
 }
 public SolutionUserService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #10
0
 public SamlTokenService(IWebRequestManager webRequestManager, IServiceConfigManager serviceConfigManager)
 {
     _webRequestManager = webRequestManager;
     _serviceConfigManager = serviceConfigManager;
 }
Beispiel #11
0
 public SuperLoggingService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
 public AuthenticationService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #13
0
		public GroupService(IWebRequestManager webRequestManager)
		{
			_webRequestManager = webRequestManager;
		}
Beispiel #14
0
 public OidcClientService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #15
0
 public AuthenticationService(IWebRequestManager webRequestManager, IServiceConfigManager serviceConfigManager)
 {
     _webRequestManager    = webRequestManager;
     _serviceConfigManager = serviceConfigManager;
 }
Beispiel #16
0
 public GithubApi(IWebRequestManager githubApiRequestManager, IWebRequestManager commonWebRequestManager)
 {
     _githubApiRequestManager = githubApiRequestManager;
     _commonWebRequestManager = commonWebRequestManager;
 }
Beispiel #17
0
 public TenantService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
 public SamlTokenService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
 public ExternalIdentityProviderService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #20
0
 public AdfService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
 public RelyingPartyService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #22
0
 public CertificateService(IWebRequestManager webRequestManager, IServiceConfigManager serviceConfigManager)
 {
     _webRequestManager    = webRequestManager;
     _serviceConfigManager = serviceConfigManager;
 }
 public ServiceGateway(IServiceConfigManager serviceConfigManager)
 {
     _serviceConfigManager = serviceConfigManager;
     _webRequestManager    = new HttpWebRequestManager();
     _webRequestManager.Subscribe(HttpTransport.HandleMessage);
 }
 public CertificateService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #25
0
 public WebCrawler(int maxThread = 10)
 {
     _threadCordinator  = new ThreadCordinator(maxThread);
     _queueManager      = new PageQueueManager();
     _webRequestManager = new WebRequestManager();
 }
Beispiel #26
0
 public GroupService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
 /// <summary>
 /// Construct a <see cref="GitHubClientFactory"/>
 /// </summary>
 /// <param name="gitHubConfigurationOptions">The <see cref="IOptions{TOptions}"/> containing the value of <see cref="gitHubConfiguration"/></param>
 /// <param name="webRequestManager">The value of <see cref="webRequestManager"/></param>
 /// <param name="logger">The value of <see cref="logger"/></param>
 public GitHubClientFactory(IOptions <GitHubConfiguration> gitHubConfigurationOptions, IWebRequestManager webRequestManager, ILogger <GitHubClientFactory> logger)
 {
     gitHubConfiguration    = gitHubConfigurationOptions?.Value ?? throw new ArgumentNullException(nameof(gitHubConfigurationOptions));
     this.webRequestManager = webRequestManager ?? throw new ArgumentNullException(nameof(webRequestManager));
     this.logger            = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public AuthenticationService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #29
0
 public IdentityProviderService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
 public FtpProtocolProvider(IWebRequestManager webRequestManager)
 {
     m_WebRequestManager = webRequestManager;
 }
 public ServiceGateway()
 {
     _webRequestManager = new HttpWebRequestManager();
     _webRequestManager.Subscribe(HttpTransport.HandleMessage);
 }
Beispiel #32
0
 public OidcClientService(IWebRequestManager webRequestManager, IServiceConfigManager serviceConfigManager)
 {
     _webRequestManager    = webRequestManager;
     _serviceConfigManager = serviceConfigManager;
 }
Beispiel #33
0
 public ServerService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #34
0
 public ServiceGateway()
 {
     _webRequestManager = new HttpWebRequestManager();
     _webRequestManager.Subscribe(HttpTransport.HandleMessage);
 }
 public SolutionUserService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #36
0
 public UserService(IWebRequestManager webRequestManager, IServiceConfigManager serviceConfigManager)
 {
     _webRequestManager    = webRequestManager;
     _serviceConfigManager = serviceConfigManager;
 }
 public OidcClientService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #38
0
 public RelyingPartyService(IWebRequestManager webRequestManager, IServiceConfigManager serviceConfigManager)
 {
     _webRequestManager    = webRequestManager;
     _serviceConfigManager = serviceConfigManager;
 }
 public RelyingPartyService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
 public SamlTokenService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
Beispiel #41
0
 public UserService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }
 public CertificateService(IWebRequestManager webRequestManager)
 {
     _webRequestManager = webRequestManager;
 }