Created
July 4, 2019 06:14
-
-
Save gashupl/7b488e71f39e59464fc98f01c100c856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void Execute(IPluginExecutionContext pluginExecutionContext, IOrganizationServiceFactory serviceFactory, ITracingService tracingService) | |
{ | |
var orgService = serviceFactory.CreateOrganizationService(pluginExecutionContext.UserId); | |
var factory = new RepositoryFactory(orgService); | |
var opportunityRepo = factory.Get(); | |
var data = opportunityRepo.GetSomeData(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment