コード例 #1
0
 public PackageService(
     [NotNull] NuGetListConfiguration deploymentConfiguration,
     [NotNull] ICustomMemoryCache memoryCache,
     [NotNull] IKeyValueConfiguration keyValueConfiguration,
     [NotNull] ILogger logger,
     [NotNull] CustomHttpClientFactory httpClientFactory)
 {
     _deploymentConfiguration = deploymentConfiguration ??
                                throw new ArgumentNullException(nameof(deploymentConfiguration));
     _memoryCache           = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
     _keyValueConfiguration =
         keyValueConfiguration ?? throw new ArgumentNullException(nameof(keyValueConfiguration));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
 }
コード例 #2
0
        public MilouDeployer(
            [NotNull] MilouDeployerConfiguration milouDeployerConfiguration,
            [NotNull] IDeploymentTargetReadService deploymentTargetReadService,
            [NotNull] ICredentialReadService credentialReadService,
            [NotNull] IKeyValueConfiguration keyValueConfiguration,
            [NotNull] CustomHttpClientFactory clientFactory)
        {
            _milouDeployerConfiguration = milouDeployerConfiguration ??
                                          throw new ArgumentNullException(nameof(milouDeployerConfiguration));

            _deploymentTargetReadService = deploymentTargetReadService ??
                                           throw new ArgumentNullException(nameof(deploymentTargetReadService));
            _credentialReadService =
                credentialReadService ?? throw new ArgumentNullException(nameof(credentialReadService));

            _keyValueConfiguration =
                keyValueConfiguration ?? throw new ArgumentNullException(nameof(keyValueConfiguration));

            _clientFactory = clientFactory;
        }
コード例 #3
0
 public Repositorio(CustomHttpClientFactory customHttpClientFactory)
 {
     this.customHttpClientFactory = customHttpClientFactory;
 }
コード例 #4
0
 public Repository(CustomHttpClientFactory customHttpClientFactory)
 {
     _customHttpClientFactory = customHttpClientFactory;
 }
コード例 #5
0
 public ProductServiceClient()
 {
     _client = CustomHttpClientFactory.CreateHttpClientWithoutSslValidation();
 }