MscrmTools / MscrmTools.FluentQueryExpressions

A library to create QueryExpression the fluent way
GNU General Public License v3.0
22 stars 7 forks source link

Async support #14

Open aa-dit-yuh opened 9 months ago

aa-dit-yuh commented 9 months ago

Support IOrganizationServiceAsync2

var query = new Query<Account>();

List<Account> records = await query.GetAllAsync(iOrganizationServiceAsync2, cancellationToken);
aa-dit-yuh commented 9 months ago

Hi @MscrmTools

Async support is defined in the interface IOrganizationServiceAsync2 that is bundled within the Microsoft.PowerPlatform.Dataverse.Client package. It looks like this package is only imported within the MscrmTools.FluentQueryExpressions.Core project as per a code search: https://github.com/search?q=repo%3AMscrmTools%2FMscrmTools.FluentQueryExpressions%20Microsoft.PowerPlatform.Dataverse.Client&type=code

Do you suggest adding async support on the Query class as extension methods defined within the MscrmTools.FluentQueryExpressions.Core project? Or is there a better way forward?

aa-dit-yuh commented 8 months ago

@MscrmTools Please provide some guidance here.