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); } }