public void ReleaseService(EnhancedOrgServiceBase enhancedService) { var releasedServices = enhancedService.ClearServicesQueue(); foreach (var service in releasedServices) { crmServicesQueue.Enqueue(service); } }
protected internal PlannedOrgService(EnhancedOrgServiceBase enhancedOrgServiceBase, Action cancelAction) { this.enhancedOrgServiceBase = enhancedOrgServiceBase; this.cancelAction = cancelAction; executionQueue = new Queue <PlannedOperation>(); }
protected internal DeferredOrgService(EnhancedOrgServiceBase enhancedOrgServiceBase, Action cancelAction) { this.enhancedOrgServiceBase = enhancedOrgServiceBase; this.cancelAction = cancelAction; deferredRequests = new List <IToken <OrganizationResponse> >(); }