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