Skip to content

Commit

Permalink
Add constructor overload to .NET DriverServiceCommandExecutor
Browse files Browse the repository at this point in the history
This new constructor overload allows the user to supply their own
HttpCommandExecutor (or a subclass) for local execution where the
driver service executable exists locally, and the user wants the
driver instance to own the process life cycle of the executable.
  • Loading branch information
jimevans committed Feb 27, 2019
1 parent 8227f97 commit 7fdf318
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dotnet/src/webdriver/Remote/DriverServiceCommandExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ public DriverServiceCommandExecutor(DriverService driverService, TimeSpan comman
this.internalExecutor = new HttpCommandExecutor(driverService.ServiceUrl, commandTimeout, enableKeepAlive);
}

/// <summary>
/// Initializes a new instance of the <see cref="DriverServiceCommandExecutor"/> class.
/// </summary>
/// <param name="driverService">The <see cref="DriverService"/> that drives the browser.</param>
/// <param name="commandExecutor">The <see cref="HttpCommandExecutor"/> object used to execute commands,
/// communicating with the service via HTTP.</param>
public DriverServiceCommandExecutor(DriverService service, HttpCommandExecutor commandExecutor)
{
this.service = service;
this.internalExecutor = commandExecutor;
}

/// <summary>
/// Gets the <see cref="CommandInfoRepository"/> object associated with this executor.
/// </summary>
Expand Down

0 comments on commit 7fdf318

Please sign in to comment.