public void Initialize(IOrganizationServiceFactory service, Guid userId) { this.OrgService = service.CreateOrganizationService(userId); this.ServiceContext = new Dyn365ServiceContext(this.OrgService); }
public RepositoryBase(ICdsServiceProvider serviceProvider) { this.Service = serviceProvider.Service; this.CdsContext = new Dyn365ServiceContext(this.Service); }
public RepositoryBase(IOrganizationService service) { this.OrgService = service; this.ServiceContext = new Dyn365ServiceContext(service); }