Skip to content

rudesh-ambasna-bzy/Springboard365.Xrm.Plugins.Core

 
 

Repository files navigation

Springboard365.Xrm.Plugins.Core

Build Status   NuGet   

What is it?

When creating Plugins for Microsoft Dynamics Crm there is alot of boiler plate code needed to extract the IOrganizationService, the ITracingService and the IPluginExecutionContext from the IServiceProvider. This is boiler plate code that we usually just copy and paste and which can distract from the business logic we implement within the plugin.

I created the Springboard365.Xrm.Plugins.Core NuGet package to remove alot of the boiler plate code and to make mocking the plugin code easier.

How does it do it?

Normally in plugins we create a class file and implement the interface "IPlugin" which has an Execute method with one paramater of type IServiceProvider. This allows Crm plugins to be generic as the IServiceProvider allows a way of getting any object by specifying only the type. After installing Springboard365.Xrm.Plugins.Core instead of implementing an interface we derive from the abstract class Plugin which now has a Execute method with parameters IOrganizationService, IPluginExecutionContext and ITracingService which can be overridden and on execution of the plugin the Springboard365.Xrm.Plugins.Core framework takes care of delivering these parameters to your plugin class file.

Installing Package from NuGet

First, install NuGet. Then, install Springboard365.Xrm.Plugins.Core from the package manager console:

Install-Package Springboard365.Xrm.Plugins.Core

About

The core framework from Springboard 365 Ltd.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.5%
  • PowerShell 5.4%
  • Batchfile 1.1%