Skip to content

v2 - OpenApiModelFactory.GetStreamAsync should accept a cancellation token #1916

@baywet

Description

@baywet

private static async Task<Stream> GetStreamAsync(string url)

To pass it to GetStreamAsync. (conditional compilation on NET5 or higher).

All callers to this method should pass the value, and accept one.

This is important as if the action is being cancelled on a backend service, this will forward the cancellation to the HTTP request being made, saving important COGS in the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions