Skip to content

Instantly share code, notes, and snippets.

@gashupl
Created July 4, 2019 06:12
Show Gist options
  • Save gashupl/81742acdb30a2c921af30603affb5d0d to your computer and use it in GitHub Desktop.
Save gashupl/81742acdb30a2c921af30603affb5d0d to your computer and use it in GitHub Desktop.
public override void Execute(IPluginExecutionContext pluginExecutionContext, IOrganizationServiceFactory serviceFactory, ITracingService tracingService)
{
var orgService = serviceFactory.CreateOrganizationService(pluginExecutionContext.UserId);
var opportunityRepo = new OpportunityRepository(orgService);
var data = opportunityRepo.GetSomeData();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment