// Comment //use your prefered userId to get IOrganicazionService by context private IOrganizationService getService(IServiceProvider serviceProvider, Guid userId) { IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory)); return serviceFactory.CreateOrganizationService(userId); }
Thanks,
Nicola Grillo
No comments:
Post a Comment