File tree 1 file changed +5
-5
lines changed
dotnet/src/webdriver/BiDi/Modules/BrowsingContext
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- using OpenQA . Selenium . BiDi . Modules . Log ;
1
+ using OpenQA . Selenium . BiDi . Modules . Log ;
2
2
using System . Threading . Tasks ;
3
3
using System ;
4
4
5
5
namespace OpenQA . Selenium . BiDi . Modules . BrowsingContext ;
6
6
7
7
public class BrowsingContextLogModule ( BrowsingContext context , LogModule logModule )
8
8
{
9
- public Task < Subscription > OnEntryAddedAsync ( Func < BaseLogEntry , Task > handler )
9
+ public Task < Subscription > OnEntryAddedAsync ( Func < BaseLogEntry , Task > handler , SubscriptionOptions options = null )
10
10
{
11
11
return logModule . OnEntryAddedAsync ( async args =>
12
12
{
13
13
if ( args . Source . Context ? . Equals ( context ) is true )
14
14
{
15
15
await handler ( args ) . ConfigureAwait ( false ) ;
16
16
}
17
- } ) ;
17
+ } , options ) ;
18
18
}
19
19
20
- public Task < Subscription > OnEntryAddedAsync ( Action < BaseLogEntry > handler )
20
+ public Task < Subscription > OnEntryAddedAsync ( Action < BaseLogEntry > handler , SubscriptionOptions options = null )
21
21
{
22
22
return logModule . OnEntryAddedAsync ( args =>
23
23
{
24
24
if ( args . Source . Context ? . Equals ( context ) is true )
25
25
{
26
26
handler ( args ) ;
27
27
}
28
- } ) ;
28
+ } , options ) ;
29
29
}
30
30
}
You can’t perform that action at this time.
0 commit comments