/// <summary>Snippet for GetJobAsync</summary> public async Task GetJobAsync() { // Snippet: GetJobAsync(JobNameOneof,CallSettings) // Additional: GetJobAsync(JobNameOneof,CancellationToken) // Create client JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync(); // Initialize request argument(s) JobNameOneof name = JobNameOneof.From(new JobName("[PROJECT]", "[TENANT]", "[JOBS]")); // Make the request Job response = await jobServiceClient.GetJobAsync(name); // End snippet }
/// <summary>Snippet for GetJobAsync</summary> public async Task GetJobAsync() { // Snippet: GetJobAsync(string,CallSettings) // Additional: GetJobAsync(string,CancellationToken) // Create client JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync(); // Initialize request argument(s) string formattedName = new JobName("[PROJECT]", "[JOB]").ToString(); // Make the request Job response = await jobServiceClient.GetJobAsync(formattedName); // End snippet }
/// <summary>Snippet for GetJobAsync</summary> public async Task GetJobAsync_RequestObject() { // Snippet: GetJobAsync(GetJobRequest,CallSettings) // Additional: GetJobAsync(GetJobRequest,CancellationToken) // Create client JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync(); // Initialize request argument(s) GetJobRequest request = new GetJobRequest { JobName = new JobName("[PROJECT]", "[JOBS]"), }; // Make the request Job response = await jobServiceClient.GetJobAsync(request); // End snippet }