File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,15 @@ public DevToolsSession GetDevToolsSession(int devToolsProtocolVersion)
216
216
return this . devToolsSession ;
217
217
}
218
218
219
+ public void TerminateDevToolsSession ( )
220
+ {
221
+ if ( this . devToolsSession != null )
222
+ {
223
+ this . devToolsSession . Dispose ( ) ;
224
+ this . devToolsSession = null ;
225
+ }
226
+ }
227
+
219
228
protected override void Dispose ( bool disposing )
220
229
{
221
230
if ( disposing )
Original file line number Diff line number Diff line change @@ -35,5 +35,7 @@ public interface IDevTools
35
35
/// <param name="protocolVersion">The specific version of the Developer Tools debugging protocol to use.</param>
36
36
/// <returns>The active session to use to communicate with the Developer Tools debugging protocol.</returns>
37
37
DevToolsSession GetDevToolsSession ( int protocolVersion ) ;
38
+
39
+ void TerminateDevToolsSession ( ) ;
38
40
}
39
41
}
Original file line number Diff line number Diff line change @@ -300,6 +300,15 @@ public DevToolsSession GetDevToolsSession(int devToolsProtocolVersion)
300
300
return this . devToolsSession ;
301
301
}
302
302
303
+ public void TerminateDevToolsSession ( )
304
+ {
305
+ if ( this . devToolsSession != null )
306
+ {
307
+ this . devToolsSession . Dispose ( ) ;
308
+ this . devToolsSession = null ;
309
+ }
310
+ }
311
+
303
312
/// <summary>
304
313
/// In derived classes, the <see cref="PrepareEnvironment"/> method prepares the environment for test execution.
305
314
/// </summary>
Original file line number Diff line number Diff line change @@ -444,6 +444,15 @@ public DevToolsSession GetDevToolsSession(int protocolVersion)
444
444
return this . devToolsSession ;
445
445
}
446
446
447
+ public void TerminateDevToolsSession ( )
448
+ {
449
+ if ( this . devToolsSession != null )
450
+ {
451
+ this . devToolsSession . Dispose ( ) ;
452
+ this . devToolsSession = null ;
453
+ }
454
+ }
455
+
447
456
private static ICapabilities ConvertOptionsToCapabilities ( DriverOptions options )
448
457
{
449
458
if ( options == null )
You can’t perform that action at this time.
0 commit comments