Class DanglIdentityHttpClientAccessor
This is a simple wrapper that can be used as injected services via the HttpClientFactory to optimize the lifetime management of HttpClients
Inheritance
System.Object
DanglIdentityHttpClientAccessor
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: Dangl.Identity.Client.Mvc
Assembly: Dangl.Identity.Client.Mvc.dll
Syntax
public class DanglIdentityHttpClientAccessor
Constructors
| Improve this Doc View SourceDanglIdentityHttpClientAccessor(HttpClient)
This will make the injected HttpClient available as read-only property for downstream consumption
Declaration
public DanglIdentityHttpClientAccessor(HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpClient | httpClient |
Properties
| Improve this Doc View SourceHttpClient
This is a read-only accessor to the HttpClient instance
Declaration
public HttpClient HttpClient { get; }
Property Value
Type | Description |
---|---|
System.Net.Http.HttpClient |