microsoft-authentication-library-for-dotnet
microsoft-authentication-library-for-dotnet copied to clipboard
IAsyncEnumerable support
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.
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