IServiceProvider Dynamic CRM Plugin

IServiceProvider Interface:

 

A container for service objects. Contains references to the plug-in execution context

(IPluginExecutionContext), tracing service (ITracingService), organization service (IOrganizationServiceFactory), and notification service (IServiceEndpointNotificationService)

 

The IServiceProvider has a single method GetService: You will use this method to get several different types of services that you can use in your code.

IserviceProvider interface: 

This interface provides access to various services of dynamic, this interface has a method called GetService() that uses the reflection feature of .NET and allows us to get any type of service we want.

 

Example:

 

 

 

IServiceProvider Dynamic CRM Plugin

https://www.youtube.com/@powerappsninja

Leave a Comment

Your email address will not be published. Required fields are marked *