@@ -15,7 +15,7 @@ public sealed class JsonHttpResult : IResult
15
15
/// </summary>
16
16
/// <param name="value">The value to format in the entity body.</param>
17
17
/// <param name="jsonSerializerOptions">The serializer settings.</param>
18
- public JsonHttpResult ( object ? value , JsonSerializerOptions ? jsonSerializerOptions )
18
+ internal JsonHttpResult ( object ? value , JsonSerializerOptions ? jsonSerializerOptions )
19
19
: this ( value , statusCode : null , contentType : null , jsonSerializerOptions : jsonSerializerOptions )
20
20
{
21
21
}
@@ -26,7 +26,7 @@ public JsonHttpResult(object? value, JsonSerializerOptions? jsonSerializerOption
26
26
/// <param name="value">The value to format in the entity body.</param>
27
27
/// <param name="statusCode">The HTTP status code of the response.</param>
28
28
/// <param name="jsonSerializerOptions">The serializer settings.</param>
29
- public JsonHttpResult ( object ? value , int ? statusCode , JsonSerializerOptions ? jsonSerializerOptions )
29
+ internal JsonHttpResult ( object ? value , int ? statusCode , JsonSerializerOptions ? jsonSerializerOptions )
30
30
: this ( value , statusCode : statusCode , contentType : null , jsonSerializerOptions : jsonSerializerOptions )
31
31
{
32
32
}
@@ -37,7 +37,7 @@ public JsonHttpResult(object? value, int? statusCode, JsonSerializerOptions? jso
37
37
/// <param name="value">The value to format in the entity body.</param>
38
38
/// <param name="contentType">The value for the <c>Content-Type</c> header</param>
39
39
/// <param name="jsonSerializerOptions">The serializer settings.</param>
40
- public JsonHttpResult ( object ? value , string ? contentType , JsonSerializerOptions ? jsonSerializerOptions )
40
+ internal JsonHttpResult ( object ? value , string ? contentType , JsonSerializerOptions ? jsonSerializerOptions )
41
41
: this ( value , statusCode : null , contentType : contentType , jsonSerializerOptions : jsonSerializerOptions )
42
42
{
43
43
@@ -50,7 +50,7 @@ public JsonHttpResult(object? value, string? contentType, JsonSerializerOptions?
50
50
/// <param name="statusCode">The HTTP status code of the response.</param>
51
51
/// <param name="jsonSerializerOptions">The serializer settings.</param>
52
52
/// <param name="contentType">The value for the <c>Content-Type</c> header</param>
53
- public JsonHttpResult ( object ? value , int ? statusCode , string ? contentType , JsonSerializerOptions ? jsonSerializerOptions )
53
+ internal JsonHttpResult ( object ? value , int ? statusCode , string ? contentType , JsonSerializerOptions ? jsonSerializerOptions )
54
54
{
55
55
Value = value ;
56
56
StatusCode = statusCode ;
0 commit comments