Class HttpClientServiceFactory
A factory that creates HttpClientService instances for a given logical name.
Inheritance
System.Object
HttpClientServiceFactory
Implements
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 SourceHttpClientServiceFactory(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 SourceInstance
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 SourceCreateHttpClientService()
Creates new HttpClientService instances.
Declaration
public HttpClientService CreateHttpClientService()
Returns
Type | Description |
---|---|
HttpClientService | An HttpClientService instance. |