diff --git a/AsbCloudInfrastructure/Services/DrillingProgram/Convert/ConvertToPdf.cs b/AsbCloudInfrastructure/Services/DrillingProgram/Convert/ConvertToPdf.cs index baf40eab..b7751ba4 100644 --- a/AsbCloudInfrastructure/Services/DrillingProgram/Convert/ConvertToPdf.cs +++ b/AsbCloudInfrastructure/Services/DrillingProgram/Convert/ConvertToPdf.cs @@ -34,7 +34,7 @@ namespace AsbCloudInfrastructure.Services.DrillingProgram.Convert }; } - private static (string programFile, string programArg) getOptionsStartupProcess (string inputFileName, string resultFileDir) + private static (string programFile, string programArg) GetOptionsStartupProcess (string inputFileName, string resultFileDir) { (string programFile, string programArg) startupOptions; if (OperatingSystem.IsWindows()) @@ -55,9 +55,9 @@ namespace AsbCloudInfrastructure.Services.DrillingProgram.Convert private static async Task StartConvertProcessAsync(string inputFileName, string resultFileDir, CancellationToken token) { - var startupOptions = getOptionsStartupProcess(inputFileName, resultFileDir); - var command = Cli.Wrap(startupOptions.programFile) - .WithArguments(startupOptions.programArg); + var (programFile, programArg) = GetOptionsStartupProcess(inputFileName, resultFileDir); + var command = Cli.Wrap(programFile) + .WithArguments(programArg); await command.ExecuteAsync(token); }