Show / Hide Table of Contents

Class HttpClientServiceFactory

A factory that creates HttpClientService instances for a given logical name.

Inheritance
System.Object
HttpClientServiceFactory
Implements
IHttpClientServiceFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Geko.HttpClientService
Assembly: Geko.HttpClientService.dll
Syntax
public sealed class HttpClientServiceFactory : IHttpClientServiceFactory

Constructors

| Improve this Doc View Source

HttpClientServiceFactory(ICoreHttpClient, IHttpRequestMessageFactory, IIdentityServerService)

Constructor of the HttpClientServiceFactory.

Declaration
public HttpClientServiceFactory(ICoreHttpClient coreHttpClient, IHttpRequestMessageFactory requestMessageFactory, IIdentityServerService tokenResponseService)
Parameters
Type Name Description
ICoreHttpClient coreHttpClient

An ICoreHttpClient implementation that will execute the HTTP requests.

IHttpRequestMessageFactory requestMessageFactory

The IHttpRequestMessageFactory to get a new .

IIdentityServerService tokenResponseService

The IIdentityServerService to retrieve a token, if required.

Properties

| Improve this Doc View Source

Instance

Lazy Singleton instantiation for use outside of a DI container.

Declaration
public static HttpClientServiceFactory Instance { get; }
Property Value
Type Description
HttpClientServiceFactory

Methods

| Improve this Doc View Source

CreateHttpClientService()

Creates new HttpClientService instances.

Declaration
public HttpClientService CreateHttpClientService()
Returns
Type Description
HttpClientService

An HttpClientService instance.

Implements

IHttpClientServiceFactory
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • HttpClientServiceFactory(ICoreHttpClient, IHttpRequestMessageFactory, IIdentityServerService)
  • Properties
    • Instance
  • Methods
    • CreateHttpClientService()
  • Implements
Back to top Generated by DocFX