From 0666cb4bb92f15348661858983e03068bc210958 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Thu, 12 Sep 2024 21:56:46 +0300 Subject: [PATCH] [dotnet] Forward subscription options in browser context for log module --- .../BrowsingContext/BrowsingContextLogModule.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dotnet/src/webdriver/BiDi/Modules/BrowsingContext/BrowsingContextLogModule.cs b/dotnet/src/webdriver/BiDi/Modules/BrowsingContext/BrowsingContextLogModule.cs index 938db7eea261a..03187efd7265c 100644 --- a/dotnet/src/webdriver/BiDi/Modules/BrowsingContext/BrowsingContextLogModule.cs +++ b/dotnet/src/webdriver/BiDi/Modules/BrowsingContext/BrowsingContextLogModule.cs @@ -1,4 +1,4 @@ -using OpenQA.Selenium.BiDi.Modules.Log; +using OpenQA.Selenium.BiDi.Modules.Log; using System.Threading.Tasks; using System; @@ -6,7 +6,7 @@ namespace OpenQA.Selenium.BiDi.Modules.BrowsingContext; public class BrowsingContextLogModule(BrowsingContext context, LogModule logModule) { - public Task OnEntryAddedAsync(Func handler) + public Task OnEntryAddedAsync(Func handler, SubscriptionOptions options = null) { return logModule.OnEntryAddedAsync(async args => { @@ -14,10 +14,10 @@ public Task OnEntryAddedAsync(Func handler) { await handler(args).ConfigureAwait(false); } - }); + }, options); } - public Task OnEntryAddedAsync(Action handler) + public Task OnEntryAddedAsync(Action handler, SubscriptionOptions options = null) { return logModule.OnEntryAddedAsync(args => { @@ -25,6 +25,6 @@ public Task OnEntryAddedAsync(Action handler) { handler(args); } - }); + }, options); } }