如何模拟 IOrganizationService
How to impersonate a IOrganizationService
实例化 IOrganizationService 对象后,是否可以模拟?
更好...
如何模拟实例化的 IOrganizationService 对象?
IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
IOrganizationService service = serviceFactory.CreateOrganizationService(someUserId);
实例化 IOrganizationService 对象后,是否可以模拟?
更好...
如何模拟实例化的 IOrganizationService 对象?
IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
IOrganizationService service = serviceFactory.CreateOrganizationService(someUserId);