Skip to content

Commit 0666cb4

Browse files
committed
[dotnet] Forward subscription options in browser context for log module
1 parent 71a0629 commit 0666cb4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
using OpenQA.Selenium.BiDi.Modules.Log;
1+
using OpenQA.Selenium.BiDi.Modules.Log;
22
using System.Threading.Tasks;
33
using System;
44

55
namespace OpenQA.Selenium.BiDi.Modules.BrowsingContext;
66

77
public class BrowsingContextLogModule(BrowsingContext context, LogModule logModule)
88
{
9-
public Task<Subscription> OnEntryAddedAsync(Func<BaseLogEntry, Task> handler)
9+
public Task<Subscription> OnEntryAddedAsync(Func<BaseLogEntry, Task> handler, SubscriptionOptions options = null)
1010
{
1111
return logModule.OnEntryAddedAsync(async args =>
1212
{
1313
if (args.Source.Context?.Equals(context) is true)
1414
{
1515
await handler(args).ConfigureAwait(false);
1616
}
17-
});
17+
}, options);
1818
}
1919

20-
public Task<Subscription> OnEntryAddedAsync(Action<BaseLogEntry> handler)
20+
public Task<Subscription> OnEntryAddedAsync(Action<BaseLogEntry> handler, SubscriptionOptions options = null)
2121
{
2222
return logModule.OnEntryAddedAsync(args =>
2323
{
2424
if (args.Source.Context?.Equals(context) is true)
2525
{
2626
handler(args);
2727
}
28-
});
28+
}, options);
2929
}
3030
}

0 commit comments

Comments
 (0)