Skip to content

Support of CancellationToken #212

Open
@petrkoutnycz

Description

@petrkoutnycz

Description

Cancellation support in OpenApiClientProvider.

Repro steps

Please provide the steps required to reproduce the problem

  1. Use a provider according this page: https://fsprojects.github.io/SwaggerProvider/#/OpenApiClientProvider

  2. Generated client contains methods without a support for cancellation tokens

Expected behavior

Generated methods accept CancellationToken instance.

Actual behavior

It is not possible to provide my own instance of CancellationToken.

Affected Type Providers

  • SwaggerClientProvider
  • OpenApiClientProvider

Related information

  • Operating system - macOS Ventura
  • .NET Runtime, CoreCLR or Mono Version - .NET 6 SDK

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions