diff --git a/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs b/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs
index 3c7aafe0378b3..49e03d21dfe22 100644
--- a/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs
+++ b/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs
@@ -19,7 +19,6 @@
using System;
using System.Globalization;
using System.Text;
-using OpenQA.Selenium.Internal;
namespace OpenQA.Selenium.Chromium
{
@@ -33,7 +32,7 @@ public abstract class ChromiumDriverService : DriverService
private string logPath = string.Empty;
private string urlPathPrefix = string.Empty;
private string portServerAddress = string.Empty;
- private string allowedIpAddresses = string.Empty;
+ private string allowedIPAddresses = string.Empty;
private int adbPort = -1;
private bool disableBuildCheck;
private bool enableVerboseLogging;
@@ -122,11 +121,11 @@ public bool EnableAppendLog
/// connect to this instance of the Chrome driver. Defaults to an empty string,
/// which means only the local loopback address can connect.
///
- [Obsolete("Use AllowedIpAddresses")]
- public string WhitelistedIpAddresses
+ [Obsolete($"Use {nameof(AllowedIPAddresses)}")]
+ public string WhitelistedIPAddresses
{
- get { return this.allowedIpAddresses; }
- set { this.allowedIpAddresses = value; }
+ get { return this.allowedIPAddresses; }
+ set { this.allowedIPAddresses = value; }
}
///
@@ -134,10 +133,10 @@ public string WhitelistedIpAddresses
/// connect to this instance of the Chrome driver. Defaults to an empty string,
/// which means only the local loopback address can connect.
///
- public string AllowedIpAddresses
+ public string AllowedIPAddresses
{
- get { return this.allowedIpAddresses; }
- set { this.allowedIpAddresses = value; }
+ get => this.allowedIPAddresses;
+ set => this.allowedIPAddresses = value;
}
///
@@ -188,9 +187,9 @@ protected override string CommandLineArguments
argsBuilder.AppendFormat(CultureInfo.InvariantCulture, " --port-server={0}", this.portServerAddress);
}
- if (!string.IsNullOrEmpty(this.allowedIpAddresses))
+ if (!string.IsNullOrEmpty(this.allowedIPAddresses))
{
- argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " -allowed-ips={0}", this.allowedIpAddresses));
+ argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " -allowed-ips={0}", this.allowedIPAddresses));
}
return argsBuilder.ToString();