Class ServiceCollectionExtensions
Extensions to work with Dangl.RestClient classes
Inheritance
System.Object
ServiceCollectionExtensions
Namespace: Dangl.RestClient
Assembly: Dangl.RestClient.dll
Syntax
public static class ServiceCollectionExtensions : object
Methods
| Improve this Doc View SourceAddDanglHttpClient<T>(IServiceCollection, String[])
This will use the HttpClientFactory mechanism to register a
Declaration
public static IHttpClientBuilder AddDanglHttpClient<T>(this IServiceCollection services, params string[] baseUrls)
where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | |
| System.String[] | baseUrls |
Returns
| Type | Description |
|---|---|
| IHttpClientBuilder |
Type Parameters
| Name | Description |
|---|---|
| T |