Skip to content

Commit 2cdef8f

Browse files
committed
[dotnet] [bidi] BiDi class is not inheritable
1 parent 08507ee commit 2cdef8f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dotnet/src/webdriver/BiDi/BiDi.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
namespace OpenQA.Selenium.BiDi;
2626

27-
public class BiDi : IAsyncDisposable
27+
public sealed class BiDi : IAsyncDisposable
2828
{
2929
private readonly Broker _broker;
3030

@@ -170,13 +170,8 @@ public Task EndAsync(Session.EndOptions? options = null)
170170
}
171171

172172
public async ValueTask DisposeAsync()
173-
{
174-
await DisposeAsyncCore();
175-
GC.SuppressFinalize(this);
176-
}
177-
178-
protected virtual async ValueTask DisposeAsyncCore()
179173
{
180174
await _broker.DisposeAsync().ConfigureAwait(false);
175+
GC.SuppressFinalize(this);
181176
}
182177
}

0 commit comments

Comments
 (0)