microsoft-identity-web icon indicating copy to clipboard operation
microsoft-identity-web copied to clipboard

add cancellationToken param to DownstreamWebApi methods

Open h3rmanj opened this issue 2 years ago • 3 comments

Addresses #1739

Add optional cancellationToken param to DownstreamWebApi methods and extension methods allowing consumers the possibility to cancel the operations.

For now I passed the cancellationToken down to methods supporting it. I'm not sure if it would be better to call ThrowIfCancellationRequested ourselves between await calls.

h3rmanj avatar May 12 '22 14:05 h3rmanj

CLA assistant check
All CLA requirements met.

ghost avatar May 12 '22 14:05 ghost

@jennyf19. Let's take this in IDownstreamRestApi (@h3rmanj : this will be a new version of IDownstreamWebApi with a better API than that one which as grown organically)

jmprieur avatar Jul 12 '22 01:07 jmprieur

@jmprieur Is there any information about the timeline we can expect IDownstreamRestApi you mentioned?

MauRiEEZZZ avatar Aug 04 '22 10:08 MauRiEEZZZ

Implemented in 2.5.0

h3rmanj avatar Feb 28 '23 09:02 h3rmanj