IServiceProvider Dynamic CRM Plugin

Talha Manzoor
0

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:













Post a Comment

0Comments

Post a Comment (0)