
Announcements
Looking at the dataverse service client, but I'm wondering what is the best approach to have the client injected.
I see the client is implementing several interfaces: IOrganizationService, IOrganizationServiceAsync and IOrganizationServiceAsync2
I assume we inject one of the interfaces and not the client itself, so that it can make unit testing easier?
From the https://github.com/microsoft/PowerPlatform-DataverseServiceClient/discussions, it is not clear what is the best way of doing this.
Not sure whether I have to post here, or on the GitHub issues of the project
You can inject the IOrganizationServiceAsync2 which includes all the methods of IOrganizationService and IOrganizationServiceAsync.
Cheers,
Kim Anh