Skip to content

Commit 164828f

Browse files
committed
Remove service from event
1 parent ad5c170 commit 164828f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

dotnet/test/common/Environment/DriverFactory.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,17 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO
127127
service.DriverServiceExecutableName = Path.GetFileName(this.driverPath);
128128
}
129129

130-
this.OnDriverLaunching(service, options);
130+
this.OnDriverLaunching(options);
131131

132132
driver = (IWebDriver)Activator.CreateInstance(driverType, service, options);
133133
return driver;
134134
}
135135

136-
protected void OnDriverLaunching(DriverService service, DriverOptions options)
136+
protected void OnDriverLaunching(DriverOptions options)
137137
{
138138
if (this.DriverStarting != null)
139139
{
140-
DriverStartingEventArgs args = new DriverStartingEventArgs(service, options);
140+
DriverStartingEventArgs args = new DriverStartingEventArgs(options);
141141
this.DriverStarting(this, args);
142142
}
143143
}

dotnet/test/common/Environment/DriverStartingEventArgs.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@ namespace OpenQA.Selenium.Environment
2121
{
2222
public class DriverStartingEventArgs
2323
{
24-
DriverService service;
2524
DriverOptions options;
2625

27-
public DriverStartingEventArgs(DriverService service, DriverOptions options)
26+
public DriverStartingEventArgs(DriverOptions options)
2827
{
29-
this.Service = service;
3028
this.Options = options;
3129
}
3230

33-
public DriverService Service { get => service; set => service = value; }
34-
3531
public DriverOptions Options { get => options; set => options = value; }
3632
}
3733
}

0 commit comments

Comments
 (0)