microsoft-authentication-library-for-dotnet icon indicating copy to clipboard operation
microsoft-authentication-library-for-dotnet copied to clipboard

IAsyncEnumerable support

Open Licantrop0 opened this issue 5 years ago • 1 comments

Example:

IPublicClientApplication.GetAccountsAsync should return an IAsyncEnumerable<IAccount> instead of a Task<IEnumerable<Account>>

This way I can easily await foreach the collection to remove all the accounts during a logout operation.

Licantrop0 avatar Dec 11 '20 23:12 Licantrop0

This feature isn't compatible with most of the target platforms that we support: net45, netstandard13, netcore21 so marking it as an improvement for when we bump the major version.

https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1?view=dotnet-plat-ext-5.0

bgavrilMS avatar Dec 14 '20 11:12 bgavrilMS