25 references to Web
Microsoft.AspNetCore.Http.Results.Tests (12)
JsonResultTests.cs (5)
118
var result = new JsonHttpResult<ProblemDetails>(details, jsonSerializerOptions: JsonSerializerOptions.
Web
);
135
var responseDetails = JsonSerializer.Deserialize<ProblemDetails>(stream, JsonSerializerOptions.
Web
);
147
var result = new JsonHttpResult<HttpValidationProblemDetails>(details, jsonSerializerOptions: JsonSerializerOptions.
Web
);
164
var responseDetails = JsonSerializer.Deserialize<HttpValidationProblemDetails>(stream, JsonSerializerOptions.
Web
);
196
var responseDetails = JsonSerializer.Deserialize<HttpValidationProblemDetails>(stream, JsonSerializerOptions.
Web
);
ProblemResultTests.cs (5)
38
var responseDetails = JsonSerializer.Deserialize<ProblemDetails>(stream, JsonSerializerOptions.
Web
);
70
var responseDetails = JsonSerializer.Deserialize<ProblemDetails>(stream, JsonSerializerOptions.
Web
);
99
var responseDetails = JsonSerializer.Deserialize<HttpValidationProblemDetails>(stream, JsonSerializerOptions.
Web
);
131
var responseDetails = JsonSerializer.Deserialize<HttpValidationProblemDetails>(stream, JsonSerializerOptions.
Web
);
163
var responseDetails = JsonSerializer.Deserialize<HttpValidationProblemDetails>(stream, JsonSerializerOptions.
Web
);
ValidationProblemResultTests.cs (2)
42
var responseDetails = JsonSerializer.Deserialize<ProblemDetails>(stream, JsonSerializerOptions.
Web
);
74
var responseDetails = JsonSerializer.Deserialize<ProblemDetails>(stream, JsonSerializerOptions.
Web
);
Microsoft.AspNetCore.Mvc.Core.Test (3)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
91
await JsonSerializer.SerializeAsync(expected, LargeAsync(), JsonSerializerOptions.
Web
);
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (2)
45
var problemDetails = await JsonSerializer.DeserializeAsync<ProblemDetails>(stream, JsonSerializerOptions.
Web
);
84
var problemDetails = await JsonSerializer.DeserializeAsync<ProblemDetails>(stream, JsonSerializerOptions.
Web
);
Microsoft.AspNetCore.Routing.FunctionalTests (5)
MinimalFormTests.cs (5)
67
var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.
Web
);
127
var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.
Web
);
288
var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.
Web
);
335
var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.
Web
);
495
var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.
Web
);
System.Net.Http.Json (5)
System\Net\Http\Json\HttpClientJsonExtensions.cs (2)
20
FromJsonAsyncCore(getMethod, client, requestUri, static (stream, options, cancellation) => JsonSerializer.DeserializeAsync(stream, options.type, options.options ?? JsonSerializerOptions.
Web
, cancellation), (type, options), cancellationToken);
25
FromJsonAsyncCore(getMethod, client, requestUri, static (stream, options, cancellation) => JsonSerializer.DeserializeAsync<TValue>(stream, options ?? JsonSerializerOptions.
Web
, cancellation), options, cancellationToken);
System\Net\Http\Json\HttpContentJsonExtensions.cs (2)
94
return await JsonSerializer.DeserializeAsync(contentStream, type, options ?? JsonSerializerOptions.
Web
, cancellationToken).ConfigureAwait(false);
104
return await JsonSerializer.DeserializeAsync<T>(contentStream, options ?? JsonSerializerOptions.
Web
, cancellationToken).ConfigureAwait(false);
System\Net\Http\Json\JsonHelpers.cs (1)
23
options ??= JsonSerializerOptions.
Web
;