You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[UnconditionalSuppressMessage("Trimming","IL2026",Justification=$"All trimming-unsafe access points to {nameof(JsonSerializerOptions)} are annotated as such")]
36
+
[UnconditionalSuppressMessage("AOT","IL3050",Justification=$"All AOT-unsafe access points to {nameof(JsonSerializerOptions)} are annotated as such")]
@@ -58,10 +68,12 @@ public Command(string name, string jsonParameters)
58
68
/// <param name="name">Name of the command</param>
59
69
/// <param name="parameters">Parameters for that command</param>
60
70
/// <exception cref="ArgumentNullException">If <paramref name="name"/> is <see langword="null"/>.</exception>
71
+
[RequiresUnreferencedCode("Adding untyped parameter values for JSON serialization has best-effort AOT support. Ensure only Selenium types and well-known .NET types are added, or use the overload that takes pre-serialized string jsonParameters for guaranteed AOT compatibility.")]
72
+
[RequiresDynamicCode("Adding untyped parameter values for JSON serialization has best-effort AOT support. Ensure only Selenium types and well-known .NET types are added, or use the overload that takes pre-serialized string jsonParameters for guaranteed AOT compatibility.")]
@@ -81,18 +93,25 @@ public Command(SessionId? sessionId, string name, Dictionary<string, object?>? p
81
93
/// Gets the parameters of the command
82
94
/// </summary>
83
95
[JsonPropertyName("parameters")]
84
-
publicDictionary<string,object?>Parameters{get;}
96
+
publicDictionary<string,object?>Parameters
97
+
{
98
+
[RequiresUnreferencedCode("Adding untyped parameter values for JSON serialization has best-effort AOT support. Ensure only Selenium types and well-known .NET types are added.")]
99
+
[RequiresDynamicCode("Adding untyped parameter values for JSON serialization has best-effort AOT support. Ensure only Selenium types and well-known .NET types are added.")]
100
+
get=>_parameters;
101
+
}
85
102
86
103
/// <summary>
87
104
/// Gets the parameters of the command as a JSON-encoded string.
88
105
/// </summary>
89
106
publicstringParametersAsJsonString
90
107
{
108
+
[UnconditionalSuppressMessage("Trimming","IL2026",Justification=$"All trimming-unsafe access points to {nameof(_parameters)} are annotated as such")]
109
+
[UnconditionalSuppressMessage("AOT","IL3050",Justification=$"All AOT-unsafe access points to {nameof(_parameters)} are annotated as such")]
0 commit comments