【发布时间】:2016-05-15 12:49:50
【问题描述】:
我们目前正在更改后端系统的架构,我们发现我们需要使用 OrganizationServiceProxy.EnableProxyTypes 方法启用代理类型以在 CodeActivities for Workflows 中使用。
但是,每当我包含此方法调用时,它都会使工作流在最终失败之前运行得非常慢。
这是我们用来调用该方法的代码:
var service = serviceFactory.CreateOrganizationService(context.UserId);
if (service is OrganizationService)
{
tracingService.Trace("Enabling proxy types");
((OrganizationServiceProxy)((OrganizationService)service).InnerService).EnableProxyTypes(assembly);
tracingService.Trace("Proxy types enabled");
}
有什么想法吗?
谢谢
【问题讨论】:
-
“我们发现我们需要启用代理类型以在 CodeActivities for Workflows 中使用”也许你想使用,但你肯定不需要
标签: dynamics-crm dynamics-crm-2016