diff --git a/ChromiumHtmlToPdfConsole/Program.cs b/ChromiumHtmlToPdfConsole/Program.cs index f0710de..b9ec835 100644 --- a/ChromiumHtmlToPdfConsole/Program.cs +++ b/ChromiumHtmlToPdfConsole/Program.cs @@ -144,7 +144,7 @@ public static void Main(string[] args) #region ParseCommandlineParameters /// - /// Parses the commandline parameters and returns these as an object + /// Parses the commandline parameters and returns these as a object /// /// /// @@ -280,9 +280,7 @@ private static void SetConverterSettings(Converter converter, Options options) converter.SetProxyServer(options.ProxyServer); if (!string.IsNullOrWhiteSpace(options.ProxyByPassList)) - { converter.SetProxyBypassList(options.ProxyByPassList); - } } if (!string.IsNullOrWhiteSpace(options.ProxyPacUrl)) @@ -396,8 +394,10 @@ private static ConvertUri CheckInput(Options options) /// This function is started from a and processes 's /// that are in the queue /// + /// /// /// + /// private static async Task ConvertWithTask(ConcurrentQueue itemsToConvert, ConcurrentQueue itemsConverted, Options options, string? instanceId) { var pageSettings = GetPageSettings(options); @@ -408,10 +408,8 @@ private static async Task ConvertWithTask(ConcurrentQueue itemsT using (logger) { - await using var converter = new Converter(options.ChromiumLocation, options.ChromiumUserProfile, logger) - { - InstanceId = instanceId - }; + await using var converter = new Converter(options.ChromiumLocation, options.ChromiumUserProfile, logger); + converter.InstanceId = instanceId; SetConverterSettings(converter, options);