From 69e32b257d6c165f71c81a21c5eed1f38451148a Mon Sep 17 00:00:00 2001 From: Atif Aziz Date: Mon, 12 Oct 2020 14:25:46 +0200 Subject: [PATCH 1/2] Fix intendation of function return statement --- BatchDotnetTutorialFfmpeg/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BatchDotnetTutorialFfmpeg/Program.cs b/BatchDotnetTutorialFfmpeg/Program.cs index 1f5a19f..052122e 100644 --- a/BatchDotnetTutorialFfmpeg/Program.cs +++ b/BatchDotnetTutorialFfmpeg/Program.cs @@ -475,7 +475,8 @@ private static async Task MonitorTasks(BatchClient batchClient, string job { Console.WriteLine(successMessage); } - return allTasksSuccessful; + + return allTasksSuccessful; } } } From 403aefbf01804f51e597e96eaeeed436fb1fa640 Mon Sep 17 00:00:00 2001 From: Atif Aziz Date: Mon, 12 Oct 2020 15:33:38 +0200 Subject: [PATCH 2/2] Fix more code mis-indentations --- BatchDotnetTutorialFfmpeg/Program.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/BatchDotnetTutorialFfmpeg/Program.cs b/BatchDotnetTutorialFfmpeg/Program.cs index 052122e..10f7cb6 100644 --- a/BatchDotnetTutorialFfmpeg/Program.cs +++ b/BatchDotnetTutorialFfmpeg/Program.cs @@ -318,8 +318,8 @@ private static async Task CreatePoolIfNotExistAsync(BatchClient batchClient, str { new ApplicationPackageReference { - ApplicationId = appPackageId, - Version = appPackageVersion + ApplicationId = appPackageId, + Version = appPackageVersion } }; @@ -347,14 +347,13 @@ private static async Task CreatePoolIfNotExistAsync(BatchClient batchClient, str /// ID of the CloudPool object in which to create the job. private static async Task CreateJobAsync(BatchClient batchClient, string jobId, string poolId) { - - Console.WriteLine("Creating job [{0}]...", jobId); + Console.WriteLine("Creating job [{0}]...", jobId); - CloudJob job = batchClient.JobOperations.CreateJob(); - job.Id = jobId; - job.PoolInformation = new PoolInformation { PoolId = poolId }; + CloudJob job = batchClient.JobOperations.CreateJob(); + job.Id = jobId; + job.PoolInformation = new PoolInformation { PoolId = poolId }; - await job.CommitAsync(); + await job.CommitAsync(); }