FusionAuth / fusionauth-client-builder

The FusionAuth client library builder
https://fusionauth.io/
Apache License 2.0
6 stars 24 forks source link

Added Task<> for every api call in netcore-client #10

Closed rdvanbuuren closed 4 years ago

rdvanbuuren commented 4 years ago

This enables asynchronous calls from the netcore-client.

robotdan commented 4 years ago

Thanks for the PR - to confirm, this will leave existing methods alone, and then add async options for each API call?

rdvanbuuren commented 4 years ago

Thanks for the PR - to confirm, this will leave existing methods alone, and then add async options for each API call?

The async methods are just like the sync ones, only goAsync<TResponse>() is returned, which results in a return type of Task<TResponse> . The sync methods themselves are then re-routed to these new async methods to keep sync methods supported.