コード例 #1
0
        internal WorkflowTree ExecuteWorkflow(WorkflowTree workflow, Entity primaryEntity, PluginContext pluginContext, Core core)
        {
            var provider = new MockupServiceProviderAndFactory(core, pluginContext, new TracingService());
            var service  = provider.CreateAdminOrganizationService(new MockupServiceSettings(true, true, MockupServiceSettings.Role.SDK));

            return(workflow.Execute(primaryEntity, core.TimeOffset, service, provider, provider.GetService(typeof(ITracingService)) as ITracingService));
        }
コード例 #2
0
 /// <summary>
 /// Gets a system administrator organization service
 /// </summary>
 /// <returns></returns>
 public IOrganizationService GetAdminService()
 {
     return(ServiceFactory.CreateAdminOrganizationService());
 }