Skip to content

Commit faa138d

Browse files
committed
[dotnet] Obsolete constructors on Response that are not conducive to immutability
1 parent 63e9a47 commit faa138d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dotnet/src/webdriver/Response.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class Response
4242
/// <summary>
4343
/// Initializes a new instance of the <see cref="Response"/> class
4444
/// </summary>
45+
[Obsolete("Set all values using the Response(string, object, WebDriverResult) constructor instead. This constructor will be removed in Selenium 4.30")]
4546
public Response()
4647
{
4748
}
@@ -50,6 +51,7 @@ public Response()
5051
/// Initializes a new instance of the <see cref="Response"/> class
5152
/// </summary>
5253
/// <param name="sessionId">Session ID in use</param>
54+
[Obsolete("Set all values using the Response(string, object, WebDriverResult) constructor instead. This constructor will be removed in Selenium 4.30")]
5355
public Response(SessionId? sessionId)
5456
{
5557
this.SessionId = sessionId?.ToString();

0 commit comments

Comments
 (0)