public FundManagerModelRepository( IHttpClientWrapper client = null, IMapper<FundManager, FundManagerModel> toModelMapper = null) { _client = client ?? new HttpClientWrapper(_serviceAppUrl); _toModelMapper = toModelMapper ?? new ToFundManagerModelMapper(); }
public MusicBrainzService(IHttpClientWrapper httpClient, IDescriptionService descriptionService, ICoverArtUrlService coverArtUrlService, IErrorLogger logger) { _client = httpClient; _descriptionService = descriptionService; _coverArtUrlService = coverArtUrlService; _logger = logger; _client.BaseAddress = new Uri(Uri); }
/// <summary> /// Initializes a new instance of the <see cref="HttpPlaidClient"/> class. /// </summary> /// <param name="serviceUri">The base uri to Plaid's service.</param> /// <param name="clientId">The client id provided by Plaid.</param> /// <param name="clientSecret">The client secret provided by Plaid.</param> /// <param name="httpClient">The http client to use for requests.</param> internal HttpPlaidClient(Uri serviceUri, string clientId, string clientSecret, IHttpClientWrapper httpClient) { Condition.Requires(clientId).IsNotNullOrWhiteSpace(); Condition.Requires(clientSecret).IsNotNullOrWhiteSpace(); Condition.Requires(serviceUri).IsNotNull(); Condition.Requires(httpClient).IsNotNull(); this.clientId = clientId; this.clientSecret = clientSecret; this.httpClient = httpClient; this.httpClient.BaseAddress = serviceUri; }
public FundManagerRepository(IHttpClientWrapper client) { _client = client; }
/// <summary> /// Common routine for transcribing an audio file. /// </summary> /// <param name="apiKey">The subscription key.</param> /// <param name="region">The region of the resource.</param> /// <param name="audioFilePath">The public URI of the audio file to transcribe.</param> /// <param name="isUri">Specifies if the <paramref name="audioFilePath"/> is a URI (true) or local file path (false).</param> /// <param name="httpClient">The implementation of IHttpClientWrapper to use when making transcription requests.</param> /// <param name="log">Trace logger instance.</param> /// <returns>A Task returning the transcribed speech.</returns> private async Task <string> TranscribeAudioPublicUriCommonAsync(Secret apiKey, string region, string audioFilePath, bool isUri, IHttpClientWrapper httpClient, ILogger log) { _log = log; _transcriptBuilder = new StringBuilder(); _stopRecognition = new TaskCompletionSource <int>(); using (BinaryReader binaryReader = BinaryReaderFactory.GetBinaryReader(audioFilePath, isUri, httpClient, log)) { return(await TranscribeAudioCommonAsync(apiKey, region, binaryReader)); } }
public StroopwafelSupplierBService(IHttpClientWrapper httpClientWrapper, ISupplierServiceConfiguration config) : base(httpClientWrapper) { ProductsUri = new Uri(config.GetProductsUri()); OrderUri = new Uri(config.GetOrderUri()); }
public EpisodeService(IHttpClientWrapper httpClientWrapper) { _httpClientWrapper = httpClientWrapper; }
/// <summary> /// Initializes a new instance of the <see cref="TypedHttpClient"/> class. /// </summary> /// <param name="httpClientWrapper">The HTTP client wrapper.</param> public TypedHttpClient(IHttpClientWrapper httpClientWrapper) { this.httpClientWrapper = httpClientWrapper; }
public CoverArtArchiveService(IHttpClientWrapper httpClient, IErrorLogger logger) : base(httpClient, logger) { }
public Client(IHttpClientWrapper httpClientWrapper) { _httpClientWrapper = httpClientWrapper; }
public NasaFetcher(IHttpClientWrapper client) { _clientFactory = client; }
public WikipediaDescriptionService(IHttpClientWrapper httpClient, IErrorLogger logger) : base(httpClient, logger) { }
public BitBucketClient(Delegates.HttpClientWrapperFactory httpClientWrapperFactory, IUserService userService) { this.userService = userService; this.httpClientWrapper = httpClientWrapperFactory("https://bitbucket.org/"); }
/// <summary> /// Internal constructor that allows injection of a client for /// testing purposes. /// </summary> /// <param name="httpClient">An injected client</param> internal MountebankRequestProxy(IHttpClientWrapper httpClient) : this() { _httpClient = httpClient; }
protected StringResourceService(IHttpClientWrapper httpClient, IErrorLogger logger) { _httpClient = httpClient; _logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="AuthorizationFlowsHttpClient"/> class. /// </summary> /// <param name="httpClientWrapper">The HTTP client wrapper.</param> public AuthorizationFlowsHttpClient(IHttpClientWrapper httpClientWrapper) : base(httpClientWrapper) { }
public RecommendationsModel(IHttpClientWrapper client, IMemoryCache cache) { this.client = client; this.cache = cache; }
public InsertProperty(IActivateProperties activateProperties, IPostToApi Postprop, IHttpClientWrapper clientWrapper, IPostingImage postingImage) { this.interpost = Postprop; this.clientWrapper = clientWrapper; this._postingImage = postingImage; this._activateProperties = activateProperties; }
/// <summary> /// Initializes a new instance of the <see cref="MsiCredentialsFactory"/> class /// </summary> /// <param name="httpClientWrapper">The HTTP client wrapper</param> /// <param name="tracer">The tracer</param> public MsiCredentialsFactory(IHttpClientWrapper httpClientWrapper, ITracer tracer) { this.httpClientWrapper = httpClientWrapper; this.tracer = tracer; }
public HttpClientFactory(IHttpClientWrapper clientWrapper) { _clientWrapper = clientWrapper; }
public MemberAccessWrapper(IHttpClientWrapper httpClientWrapper, string baseUri, string callLog) { _httpClientWrapper = httpClientWrapper; _baseUri = baseUri; _callLog = callLog; }
public QuestionnaireController(IHttpClientWrapper httpClientWrapper) { this.httpClientWrapper = httpClientWrapper; }
protected StroopwafelSupplierServiceBase(IHttpClientWrapper httpClientWrapper) { this.HttpClient = httpClientWrapper; }
public ProductService(IShopperHistoryService shopperHistoryService, IOptions <ConnectionSettings> connectionSettings, IHttpClientWrapper httpClientWrapper) { _shopperHistoryService = shopperHistoryService; _httpClientWrapper = httpClientWrapper; _connectionSettings = connectionSettings.Value; }
public VcsRootClient(IHttpClientWrapper http) { _http = http; }
internal CustomDomains(RepositoryScope repositories, IHttpClientWrapper apiClientWrapper) : base(repositories.RootUri + "/custom-domains", apiClientWrapper) { }
public ShowService(IHttpClientWrapper httpClientWrapper) { _httpClientWrapper = httpClientWrapper; }
internal CustomDomains(OrganisationScope organisation, IHttpClientWrapper apiClientWrapper) : base(organisation.RootUri + "/custom-domains", apiClientWrapper) { }
/// <summary> /// Common routine for transcribing an audio file. /// </summary> /// <param name="apiKey">The subscription key.</param> /// <param name="region">The region of the resource.</param> /// <param name="audioFileUri">The public URI of the audio file to transcribe.</param> /// <param name="httpClient">The implementation of IHttpClientWrapper to use when making transcription requests.</param> /// <param name="log">Trace logger instance.</param> /// <returns>A Task returning the transcribed speech.</returns> public async Task <string> TranscribeAudioFileUriAsync(Secret apiKey, string region, string audioFileUri, IHttpClientWrapper httpClient, ILogger log) { return(await TranscribeAudioPublicUriCommonAsync(apiKey, region, audioFileUri, true, httpClient, log)); }
public FourChanDownloader(IHttpClientWrapper httpClient) { this.httpClient = httpClient; }
public AuthService(IHttpClientWrapper httpClient) { this.httpClient = httpClient; }
public HttpClientRequestSender(IHttpClientWrapper clientWrapper, IEnumerable <IHttpClientRequestFilter> filters) { this.clientWrapper = clientWrapper; this.filters = filters; }
public RefreshCommand(Application parent, IHttpClientWrapper httpClient) : base(parent, CommandName, httpClient) { _sourceFileArg = Argument(SourceURLArgName, "The OpenAPI reference to refresh."); }
/// <summary> /// Initializes a new instance of the <see cref="AuthorizationManagementClient"/> class. /// </summary> /// <param name="tracer">Log wrapper</param> /// <param name="httpClientWrapper">The HTTP client wrapper</param> public AuthorizationManagementClient(ITracer tracer, IHttpClientWrapper httpClientWrapper) { this.tracer = Diagnostics.EnsureArgumentNotNull(() => tracer); this.httpClientWrapper = Diagnostics.EnsureArgumentNotNull(() => httpClientWrapper); this.retryPolicy = PolicyExtensions.CreateDefaultPolicy(this.tracer, DependencyName); }
public SectorService(IHttpClientWrapper httpClient, IConfiguration configuration) { this.httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); }
public ConcertPageScraper(IHttpClientWrapper httpClientWrapper, Uri uri) : base(httpClientWrapper, uri) { }
public ShowExtendedService(IHttpClientWrapper httpClientWrapper) { _httpClientWrapper = httpClientWrapper; }
public RestClient(IHttpClientWrapper httpClientWrapper, string baseUri, IDictionary<string, string> defaultRequestHeaders) { _httpClientWrapper = httpClientWrapper; BaseUri = baseUri; }
public AddressService(IHttpClientWrapper httpClientWrapper) { _httpClientWrapper = httpClientWrapper; }
public FootballHttpServiceClient(IHttpClientWrapper httpClient) { _httpClient = httpClient; }
/// <summary> /// Gets the plaid client with test credentials and sandbox server url. /// </summary> internal IPlaidClient GetPlaidClient(IHttpClientWrapper httpClient) { return new HttpPlaidClient(BaseTestClass.TestServer, BaseTestClass.TestClientId, BaseTestClass.TestSecret, httpClient); }
public ArmRepository(IHttpClientWrapper clientWrapper) { _clientWrapper = clientWrapper; }