MscrmTools.FluentQueryExpressions icon indicating copy to clipboard operation
MscrmTools.FluentQueryExpressions copied to clipboard

Async support

Open aa-dit-yuh opened this issue 1 year ago • 2 comments

Support IOrganizationServiceAsync2

var query = new Query<Account>();

List<Account> records = await query.GetAllAsync(iOrganizationServiceAsync2, cancellationToken);

aa-dit-yuh avatar Jan 25 '24 17:01 aa-dit-yuh

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 avatar Feb 06 '24 10:02 aa-dit-yuh

@MscrmTools Please provide some guidance here.

aa-dit-yuh avatar Mar 11 '24 04:03 aa-dit-yuh