Skip to content

Needs to use IHttpClientFactory instead of creating HttpClient instance #12

Description

@hswami

In keeping with .NET guidance, the ReportingService should not be creating HttpClient using new(), it should be using the IHttpClientFactory.

See https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory for more information.

The rationale is that we cannot simply enable resilience on the API without writing a custom wrapper and/or implementation to do so.

See https://learn.microsoft.com/en-us/dotnet/core/resilience/http-resilience for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions