Skip to content

Commit 277f0d7

Browse files
committed
Force in module
1 parent 3c4ac00 commit 277f0d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dotnet/src/webdriver/BiDi/Module.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using System;
2121
using System.Text.Json;
2222
using System.Text.Json.Serialization.Metadata;
23+
using System.Threading;
2324
using System.Threading.Tasks;
2425

2526
namespace OpenQA.Selenium.BiDi;
@@ -28,11 +29,11 @@ public abstract class Module
2829
{
2930
private Broker Broker { get; set; } = null!;
3031

31-
protected Task<TResult> ExecuteCommandAsync<TCommand, TResult>(TCommand command, CommandOptions? options, JsonTypeInfo<TCommand> jsonCommandTypeInfo, JsonTypeInfo<TResult> jsonResultTypeInfo)
32+
protected Task<TResult> ExecuteCommandAsync<TCommand, TResult>(TCommand command, CommandOptions? options, JsonTypeInfo<TCommand> jsonCommandTypeInfo, JsonTypeInfo<TResult> jsonResultTypeInfo, CancellationToken? cancellationToken)
3233
where TCommand : Command
3334
where TResult : EmptyResult
3435
{
35-
return Broker.ExecuteCommandAsync(command, options, jsonCommandTypeInfo, jsonResultTypeInfo);
36+
return Broker.ExecuteCommandAsync(command, options, jsonCommandTypeInfo, jsonResultTypeInfo, cancellationToken);
3637
}
3738

3839
protected Task<Subscription> SubscribeAsync<TEventArgs>(string eventName, Action<TEventArgs> action, SubscriptionOptions? options, JsonTypeInfo<TEventArgs> jsonTypeInfo)

0 commit comments

Comments
 (0)