←Select platform

GetClientJobs Method

Summary

Retrieves all jobs from the Job Processor for the specified client (user).

Syntax

C#
VB
C++
[FaultContractAttribute(System.Type)] 
[OperationContractAttribute()] 
public GetClientJobsResponse GetClientJobs( 
   GetClientJobsRequest request 
) 
  
<FaultContractAttribute(DetailType=Leadtools.Services.JobProcessor.FaultContracts.CloudFault,  
   Action="",  
   Name="",  
   Namespace="",  
   ProtectionLevel=ProtectionLevel.None,  
   HasProtectionLevel=False)> 
<OperationContractAttribute()> 
Function GetClientJobs( _ 
   ByVal request As Leadtools.Services.Jobprocessor.Datacontracts.GetClientJobsRequest _ 
) As Leadtools.Services.Jobprocessor.Datacontracts.GetClientJobsResponse 
[FaultContractAttribute(DetailType=Leadtools.Services.JobProcessor.FaultContracts.CloudFault,  
   Action="",  
   Name="",  
   Namespace="",  
   ProtectionLevel=ProtectionLevel.None,  
   HasProtectionLevel=false)] 
[OperationContractAttribute()] 
Leadtools.Services.Jobprocessor.Datacontracts.GetClientJobsResponse^ GetClientJobs(  
   Leadtools.Services.Jobprocessor.Datacontracts.GetClientJobsRequest^ request 
)  

Parameters

request
A Leadtools.Services.JobProcessor.DataContracts.GetClientJobsRequest class containing the client (user) information.

Return Value

A Leadtools.Services.JobProcessor.DataContracts.GetClientJobsResponse class containing all jobs for the specified user.

Remarks

Use this method to retrieve all jobs for a given user. This method will return all jobs with a matching value in the cUserToken column. The Leadtools.Services.JobProcessor.DataContracts.GetClientJobsResponse class will contain an array of all job IDs matching the specified user token. If no matching jobs are found, a zero length array is returned.

Example

C#
VB
using LeadtoolsJobProcessorExamples.JobService; 
 
public void GetClientJobs() 
{ 
   using (JobServiceClient jobServiceClient = new JobServiceClient()) 
   { 
      //Get all the jobs with a user token of "user1". 
      GetClientJobsRequest getClientJobsRequest = new GetClientJobsRequest(); 
      getClientJobsRequest.UserToken = "User2"; 
      GetClientJobsResponse getClientJobsResponse = jobServiceClient.GetClientJobs(getClientJobsRequest); 
      foreach (string jobID in getClientJobsResponse.JobsIds) 
         Console.WriteLine(String.Format("ID = {0}", jobID)); 
   } 
} 
Public Sub GetClientJobs() 
   Using jobServiceClient As JobServiceClient = New JobServiceClient() 
      'Get all the jobs with a user token of "user1". 
      Dim getClientJobsRequest As GetClientJobsRequest = New GetClientJobsRequest() 
      getClientJobsRequest.UserToken = "User2" 
      Dim getClientJobsResponse As GetClientJobsResponse = jobServiceClient.GetClientJobs(getClientJobsRequest) 
      For Each jobID As String In getClientJobsResponse.JobsIds 
         Console.WriteLine(String.Format("ID = {0}", jobID)) 
      Next jobID 
   End Using 
End Sub 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.