709 instantiations of JsonSerializable
aspire (161)
Backchannel\BackchannelJsonSerializerContext.cs (61)
18
[
JsonSerializable
(typeof(RuntimeSpec))]
19
[
JsonSerializable
(typeof(CommandSpec))]
20
[
JsonSerializable
(typeof(string[]))]
21
[
JsonSerializable
(typeof(bool))]
22
[
JsonSerializable
(typeof(long))]
23
[
JsonSerializable
(typeof(DashboardUrlsState))]
24
[
JsonSerializable
(typeof(JsonElement))]
25
[
JsonSerializable
(typeof(IAsyncEnumerable<RpcResourceState>))]
26
[
JsonSerializable
(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<RpcResourceState>))]
27
[
JsonSerializable
(typeof(IAsyncEnumerable<BackchannelLogEntry>))]
28
[
JsonSerializable
(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<BackchannelLogEntry>))]
29
[
JsonSerializable
(typeof(IAsyncEnumerable<PublishingActivity>))]
30
[
JsonSerializable
(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<PublishingActivity>))]
31
[
JsonSerializable
(typeof(RequestId))]
32
[
JsonSerializable
(typeof(IEnumerable<DisplayLineState>))]
33
[
JsonSerializable
(typeof(PublishingPromptInputAnswer[]))]
34
[
JsonSerializable
(typeof(ValidationResult))]
35
[
JsonSerializable
(typeof(IAsyncEnumerable<CommandOutput>))]
36
[
JsonSerializable
(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<CommandOutput>))]
37
[
JsonSerializable
(typeof(EnvVar))]
38
[
JsonSerializable
(typeof(List<EnvVar>))]
39
[
JsonSerializable
(typeof(List<string>))]
40
[
JsonSerializable
(typeof(DebugSessionOptions))]
41
[
JsonSerializable
(typeof(bool?))]
42
[
JsonSerializable
(typeof(AppHostProjectSearchResultPoco))]
43
[
JsonSerializable
(typeof(DashboardMcpConnectionInfo))]
44
[
JsonSerializable
(typeof(AppHostInformation))]
45
[
JsonSerializable
(typeof(ResourceSnapshot))]
46
[
JsonSerializable
(typeof(ResourceSnapshot[]))]
47
[
JsonSerializable
(typeof(List<ResourceSnapshot>))]
48
[
JsonSerializable
(typeof(IAsyncEnumerable<ResourceSnapshot>))]
49
[
JsonSerializable
(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<ResourceSnapshot>))]
50
[
JsonSerializable
(typeof(ResourceSnapshotMcpServer))]
51
[
JsonSerializable
(typeof(ResourceLogLine))]
52
[
JsonSerializable
(typeof(ResourceLogLine[]))]
53
[
JsonSerializable
(typeof(IAsyncEnumerable<ResourceLogLine>))]
54
[
JsonSerializable
(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<ResourceLogLine>))]
55
[
JsonSerializable
(typeof(Dictionary<string, JsonElement>))]
56
[
JsonSerializable
(typeof(Dictionary<string, string>))]
57
[
JsonSerializable
(typeof(CapabilitiesInfo))]
58
[
JsonSerializable
(typeof(CommonErrorData))]
60
[
JsonSerializable
(typeof(GetCapabilitiesRequest))]
61
[
JsonSerializable
(typeof(GetCapabilitiesResponse))]
62
[
JsonSerializable
(typeof(GetAppHostInfoRequest))]
63
[
JsonSerializable
(typeof(GetAppHostInfoResponse))]
64
[
JsonSerializable
(typeof(GetDashboardInfoRequest))]
65
[
JsonSerializable
(typeof(GetDashboardInfoResponse))]
66
[
JsonSerializable
(typeof(GetResourcesRequest))]
67
[
JsonSerializable
(typeof(GetResourcesResponse))]
68
[
JsonSerializable
(typeof(WatchResourcesRequest))]
69
[
JsonSerializable
(typeof(GetConsoleLogsRequest))]
70
[
JsonSerializable
(typeof(CallMcpToolRequest))]
71
[
JsonSerializable
(typeof(CallMcpToolResponse))]
72
[
JsonSerializable
(typeof(McpToolContentItem))]
73
[
JsonSerializable
(typeof(McpToolContentItem[]))]
74
[
JsonSerializable
(typeof(StopAppHostRequest))]
75
[
JsonSerializable
(typeof(StopAppHostResponse))]
76
[
JsonSerializable
(typeof(ExecuteResourceCommandRequest))]
77
[
JsonSerializable
(typeof(ExecuteResourceCommandResponse))]
78
[
JsonSerializable
(typeof(WaitForResourceRequest))]
79
[
JsonSerializable
(typeof(WaitForResourceResponse))]
Commands\DescribeCommand.cs (8)
28
[
JsonSerializable
(typeof(ResourcesOutput))]
29
[
JsonSerializable
(typeof(ResourceJson))]
30
[
JsonSerializable
(typeof(ResourceUrlJson))]
31
[
JsonSerializable
(typeof(ResourceVolumeJson))]
32
[
JsonSerializable
(typeof(Dictionary<string, string?>))]
33
[
JsonSerializable
(typeof(Dictionary<string, ResourceHealthReportJson>))]
34
[
JsonSerializable
(typeof(ResourceRelationshipJson))]
35
[
JsonSerializable
(typeof(Dictionary<string, ResourceCommandJson>))]
Commands\LogsCommand.cs (2)
40
[
JsonSerializable
(typeof(LogLineJson))]
41
[
JsonSerializable
(typeof(LogsOutput))]
Commands\PsCommand.cs (10)
35
[
JsonSerializable
(typeof(List<AppHostDisplayInfo>))]
36
[
JsonSerializable
(typeof(ResourceJson))]
37
[
JsonSerializable
(typeof(ResourceUrlJson))]
38
[
JsonSerializable
(typeof(ResourceVolumeJson))]
39
[
JsonSerializable
(typeof(ResourceRelationshipJson))]
40
[
JsonSerializable
(typeof(ResourceHealthReportJson))]
41
[
JsonSerializable
(typeof(ResourceCommandJson))]
42
[
JsonSerializable
(typeof(Dictionary<string, string?>))]
43
[
JsonSerializable
(typeof(Dictionary<string, ResourceHealthReportJson>))]
44
[
JsonSerializable
(typeof(Dictionary<string, ResourceCommandJson>))]
Commands\RunCommand.cs (1)
38
[
JsonSerializable
(typeof(DetachOutputInfo))]
Commands\Sdk\SdkDumpCommand.cs (11)
642
[
JsonSerializable
(typeof(CapabilitiesInfo))]
643
[
JsonSerializable
(typeof(PackageInfo))]
644
[
JsonSerializable
(typeof(CapabilityInfo))]
645
[
JsonSerializable
(typeof(ParameterInfo))]
646
[
JsonSerializable
(typeof(CallbackParameterInfo))]
647
[
JsonSerializable
(typeof(TypeRefInfo))]
648
[
JsonSerializable
(typeof(HandleTypeInfo))]
649
[
JsonSerializable
(typeof(DtoTypeInfo))]
650
[
JsonSerializable
(typeof(DtoPropertyInfo))]
651
[
JsonSerializable
(typeof(EnumTypeInfo))]
652
[
JsonSerializable
(typeof(DiagnosticInfo))]
JsonSourceGenerationContext.cs (20)
22
[
JsonSerializable
(typeof(CliSettings))]
23
[
JsonSerializable
(typeof(JsonObject))]
24
[
JsonSerializable
(typeof(ListIntegrationsResponse))]
25
[
JsonSerializable
(typeof(Integration))]
26
[
JsonSerializable
(typeof(DoctorCheckResponse))]
27
[
JsonSerializable
(typeof(EnvironmentCheckResult))]
28
[
JsonSerializable
(typeof(DoctorCheckSummary))]
29
[
JsonSerializable
(typeof(ContainerVersionJson))]
30
[
JsonSerializable
(typeof(AspireJsonConfiguration))]
31
[
JsonSerializable
(typeof(AspireConfigFile))]
32
[
JsonSerializable
(typeof(List<DevCertInfo>))]
33
[
JsonSerializable
(typeof(ConfigInfo))]
34
[
JsonSerializable
(typeof(FeatureInfo))]
35
[
JsonSerializable
(typeof(SettingsSchema))]
36
[
JsonSerializable
(typeof(PropertyInfo))]
37
[
JsonSerializable
(typeof(LlmsDocument[]))]
38
[
JsonSerializable
(typeof(LlmsSection))]
39
[
JsonSerializable
(typeof(DocsListItem[]))]
40
[
JsonSerializable
(typeof(SearchResult[]))]
41
[
JsonSerializable
(typeof(DocsContent))]
Mcp\Tools\ListAppHostsTool.cs (1)
18
[
JsonSerializable
(typeof(List<AppHostListInfo>))]
Mcp\Tools\ListResourcesTool.cs (7)
15
[
JsonSerializable
(typeof(ResourceJson[]))]
16
[
JsonSerializable
(typeof(ResourceUrlJson))]
17
[
JsonSerializable
(typeof(ResourceVolumeJson))]
18
[
JsonSerializable
(typeof(Dictionary<string, string?>))]
19
[
JsonSerializable
(typeof(Dictionary<string, ResourceHealthReportJson>))]
20
[
JsonSerializable
(typeof(ResourceRelationshipJson))]
21
[
JsonSerializable
(typeof(Dictionary<string, ResourceCommandJson>))]
NuGet\BundleNuGetPackageCache.cs (2)
274
[
JsonSerializable
(typeof(BundleSearchResult))]
275
[
JsonSerializable
(typeof(BundlePackageInfo))]
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (38)
26
[
JsonSerializable
(typeof(OtlpAnyValueJson))]
27
[
JsonSerializable
(typeof(OtlpArrayValueJson))]
28
[
JsonSerializable
(typeof(OtlpKeyValueListJson))]
29
[
JsonSerializable
(typeof(OtlpKeyValueJson))]
30
[
JsonSerializable
(typeof(OtlpInstrumentationScopeJson))]
31
[
JsonSerializable
(typeof(OtlpEntityRefJson))]
32
[
JsonSerializable
(typeof(OtlpResourceJson))]
33
[
JsonSerializable
(typeof(OtlpTelemetryDataJson))]
35
[
JsonSerializable
(typeof(OtlpResourceSpansJson))]
36
[
JsonSerializable
(typeof(OtlpScopeSpansJson))]
37
[
JsonSerializable
(typeof(OtlpSpanJson))]
38
[
JsonSerializable
(typeof(OtlpSpanEventJson))]
39
[
JsonSerializable
(typeof(OtlpSpanLinkJson))]
40
[
JsonSerializable
(typeof(OtlpSpanStatusJson))]
41
[
JsonSerializable
(typeof(OtlpExportTraceServiceRequestJson))]
43
[
JsonSerializable
(typeof(OtlpResourceLogsJson))]
44
[
JsonSerializable
(typeof(OtlpScopeLogsJson))]
45
[
JsonSerializable
(typeof(OtlpLogRecordJson))]
46
[
JsonSerializable
(typeof(OtlpExportLogsServiceRequestJson))]
48
[
JsonSerializable
(typeof(OtlpResourceMetricsJson))]
49
[
JsonSerializable
(typeof(OtlpScopeMetricsJson))]
50
[
JsonSerializable
(typeof(OtlpMetricJson))]
51
[
JsonSerializable
(typeof(OtlpGaugeJson))]
52
[
JsonSerializable
(typeof(OtlpSumJson))]
53
[
JsonSerializable
(typeof(OtlpHistogramJson))]
54
[
JsonSerializable
(typeof(OtlpExponentialHistogramJson))]
55
[
JsonSerializable
(typeof(OtlpSummaryJson))]
56
[
JsonSerializable
(typeof(OtlpNumberDataPointJson))]
57
[
JsonSerializable
(typeof(OtlpHistogramDataPointJson))]
58
[
JsonSerializable
(typeof(OtlpExponentialHistogramDataPointJson))]
59
[
JsonSerializable
(typeof(OtlpExponentialHistogramBucketsJson))]
60
[
JsonSerializable
(typeof(OtlpSummaryDataPointJson))]
61
[
JsonSerializable
(typeof(OtlpValueAtQuantileJson))]
62
[
JsonSerializable
(typeof(OtlpExemplarJson))]
64
[
JsonSerializable
(typeof(ResourceJson))]
66
[
JsonSerializable
(typeof(TelemetryApiResponse))]
67
[
JsonSerializable
(typeof(ResourceInfoJson))]
68
[
JsonSerializable
(typeof(ResourceInfoJson[]))]
Aspire.Confluent.Kafka (1)
Statistics.cs (1)
57
[
JsonSerializable
(typeof(Statistics))]
Aspire.Dashboard (79)
Mcp\McpInstallButtonServerModel.cs (9)
46
[
JsonSerializable
(typeof(McpInstallButtonServerModel))]
47
[
JsonSerializable
(typeof(McpInputModel))]
48
[
JsonSerializable
(typeof(List<McpInputModel>))]
49
[
JsonSerializable
(typeof(Dictionary<string, string>))]
53
[
JsonSerializable
(typeof(McpJsonFileServerModel))]
54
[
JsonSerializable
(typeof(McpJsonFileServerInstanceModel))]
55
[
JsonSerializable
(typeof(McpInputModel))]
56
[
JsonSerializable
(typeof(List<McpInputModel>))]
57
[
JsonSerializable
(typeof(Dictionary<string, string>))]
Model\GenAI\GenAIEvents.cs (4)
53
[
JsonSerializable
(typeof(SystemOrUserEvent))]
54
[
JsonSerializable
(typeof(AssistantEvent))]
55
[
JsonSerializable
(typeof(ToolEvent))]
56
[
JsonSerializable
(typeof(ChoiceEvent))]
Model\GenAI\GenAIMessages.cs (14)
294
[
JsonSerializable
(typeof(MessagePart))]
295
[
JsonSerializable
(typeof(TextPart))]
296
[
JsonSerializable
(typeof(ToolCallRequestPart))]
297
[
JsonSerializable
(typeof(ToolCallResponsePart))]
298
[
JsonSerializable
(typeof(BlobPart))]
299
[
JsonSerializable
(typeof(FilePart))]
300
[
JsonSerializable
(typeof(UriPart))]
301
[
JsonSerializable
(typeof(ReasoningPart))]
302
[
JsonSerializable
(typeof(ServerToolCallPart))]
303
[
JsonSerializable
(typeof(ServerToolCallResponsePart))]
304
[
JsonSerializable
(typeof(GenericPart))]
305
[
JsonSerializable
(typeof(UnexpectedErrorPart))]
306
[
JsonSerializable
(typeof(ChatMessage))]
307
[
JsonSerializable
(typeof(List<ChatMessage>))]
Model\Serialization\ResourceJsonSerializerContext.cs (7)
19
[
JsonSerializable
(typeof(ResourceJson))]
20
[
JsonSerializable
(typeof(ResourceUrlJson))]
21
[
JsonSerializable
(typeof(ResourceVolumeJson))]
22
[
JsonSerializable
(typeof(Dictionary<string, string?>))]
23
[
JsonSerializable
(typeof(Dictionary<string, ResourceHealthReportJson>))]
24
[
JsonSerializable
(typeof(ResourceRelationshipJson))]
25
[
JsonSerializable
(typeof(Dictionary<string, ResourceCommandJson>))]
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (45)
26
[
JsonSerializable
(typeof(OtlpAnyValueJson))]
27
[
JsonSerializable
(typeof(OtlpArrayValueJson))]
28
[
JsonSerializable
(typeof(OtlpKeyValueListJson))]
29
[
JsonSerializable
(typeof(OtlpKeyValueJson))]
30
[
JsonSerializable
(typeof(OtlpInstrumentationScopeJson))]
31
[
JsonSerializable
(typeof(OtlpEntityRefJson))]
32
[
JsonSerializable
(typeof(OtlpResourceJson))]
33
[
JsonSerializable
(typeof(OtlpTelemetryDataJson))]
35
[
JsonSerializable
(typeof(OtlpResourceSpansJson))]
36
[
JsonSerializable
(typeof(OtlpScopeSpansJson))]
37
[
JsonSerializable
(typeof(OtlpSpanJson))]
38
[
JsonSerializable
(typeof(OtlpSpanEventJson))]
39
[
JsonSerializable
(typeof(OtlpSpanLinkJson))]
40
[
JsonSerializable
(typeof(OtlpSpanStatusJson))]
41
[
JsonSerializable
(typeof(OtlpExportTraceServiceRequestJson))]
43
[
JsonSerializable
(typeof(OtlpResourceLogsJson))]
44
[
JsonSerializable
(typeof(OtlpScopeLogsJson))]
45
[
JsonSerializable
(typeof(OtlpLogRecordJson))]
46
[
JsonSerializable
(typeof(OtlpExportLogsServiceRequestJson))]
48
[
JsonSerializable
(typeof(OtlpResourceMetricsJson))]
49
[
JsonSerializable
(typeof(OtlpScopeMetricsJson))]
50
[
JsonSerializable
(typeof(OtlpMetricJson))]
51
[
JsonSerializable
(typeof(OtlpGaugeJson))]
52
[
JsonSerializable
(typeof(OtlpSumJson))]
53
[
JsonSerializable
(typeof(OtlpHistogramJson))]
54
[
JsonSerializable
(typeof(OtlpExponentialHistogramJson))]
55
[
JsonSerializable
(typeof(OtlpSummaryJson))]
56
[
JsonSerializable
(typeof(OtlpNumberDataPointJson))]
57
[
JsonSerializable
(typeof(OtlpHistogramDataPointJson))]
58
[
JsonSerializable
(typeof(OtlpExponentialHistogramDataPointJson))]
59
[
JsonSerializable
(typeof(OtlpExponentialHistogramBucketsJson))]
60
[
JsonSerializable
(typeof(OtlpSummaryDataPointJson))]
61
[
JsonSerializable
(typeof(OtlpValueAtQuantileJson))]
62
[
JsonSerializable
(typeof(OtlpExemplarJson))]
64
[
JsonSerializable
(typeof(ResourceJson))]
66
[
JsonSerializable
(typeof(TelemetryApiResponse))]
67
[
JsonSerializable
(typeof(ResourceInfoJson))]
68
[
JsonSerializable
(typeof(ResourceInfoJson[]))]
71
[
JsonSerializable
(typeof(OtlpExportTraceServiceResponseJson))]
72
[
JsonSerializable
(typeof(OtlpExportTracePartialSuccessJson))]
73
[
JsonSerializable
(typeof(OtlpExportLogsServiceResponseJson))]
74
[
JsonSerializable
(typeof(OtlpExportLogsPartialSuccessJson))]
75
[
JsonSerializable
(typeof(OtlpExportMetricsServiceRequestJson))]
76
[
JsonSerializable
(typeof(OtlpExportMetricsServiceResponseJson))]
77
[
JsonSerializable
(typeof(OtlpExportMetricsPartialSuccessJson))]
Aspire.Hosting (2)
Dashboard\DashboardEventHandlers.cs (1)
966
[
JsonSerializable
(typeof(DashboardLogMessage))]
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
9
[
JsonSerializable
(typeof(LaunchSettings))]
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
9
[
JsonSerializable
(typeof(LaunchSettings))]
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
507
[
JsonSerializable
(typeof(DockerComposeServiceResource.DockerComposeServiceInfo))]
Aspire.Hosting.Nats.Tests (1)
AppEvent.cs (1)
10
[
JsonSerializable
(typeof(AppEvent))]
Aspire.Hosting.Testing (1)
src\Shared\LaunchProfiles\LaunchSettingsSerializerContext.cs (1)
9
[
JsonSerializable
(typeof(LaunchSettings))]
aspire-managed (2)
NuGet\Commands\SearchCommand.cs (2)
340
[
JsonSerializable
(typeof(SearchResult))]
341
[
JsonSerializable
(typeof(PackageInfo))]
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenJsonSerializerContext.cs (1)
8
[
JsonSerializable
(typeof(AccessTokenResponse))]
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
401
[
JsonSerializable
(typeof(TwitterErrorResponse))]
Microsoft.AspNetCore.Components.Endpoints (34)
Assets\ImportMapSerializerContext.cs (1)
10
[
JsonSerializable
(typeof(ImportMapDefinition))]
Builder\ResourceCollectionUrlEndpoint.cs (2)
190
[
JsonSerializable
(typeof(ResourceAssetCollection))]
191
[
JsonSerializable
(typeof(IReadOnlyList<ResourceAsset>))]
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
76
[
JsonSerializable
(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
TempData\JsonTempDataSerializer.cs (30)
156
[
JsonSerializable
(typeof(int))]
157
[
JsonSerializable
(typeof(bool))]
158
[
JsonSerializable
(typeof(string))]
159
[
JsonSerializable
(typeof(Guid))]
160
[
JsonSerializable
(typeof(DateTime))]
162
[
JsonSerializable
(typeof(int?))]
163
[
JsonSerializable
(typeof(bool?))]
164
[
JsonSerializable
(typeof(Guid?))]
165
[
JsonSerializable
(typeof(DateTime?))]
167
[
JsonSerializable
(typeof(ICollection<int>))]
168
[
JsonSerializable
(typeof(ICollection<bool>))]
169
[
JsonSerializable
(typeof(ICollection<string>))]
170
[
JsonSerializable
(typeof(ICollection<Guid>))]
171
[
JsonSerializable
(typeof(ICollection<DateTime>))]
173
[
JsonSerializable
(typeof(ICollection<int?>))]
174
[
JsonSerializable
(typeof(ICollection<bool?>))]
175
[
JsonSerializable
(typeof(ICollection<Guid?>))]
176
[
JsonSerializable
(typeof(ICollection<DateTime?>))]
178
[
JsonSerializable
(typeof(IDictionary<string, int>))]
179
[
JsonSerializable
(typeof(IDictionary<string, bool>))]
180
[
JsonSerializable
(typeof(IDictionary<string, string>))]
181
[
JsonSerializable
(typeof(IDictionary<string, Guid>))]
182
[
JsonSerializable
(typeof(IDictionary<string, DateTime>))]
184
[
JsonSerializable
(typeof(IDictionary<string, int?>))]
185
[
JsonSerializable
(typeof(IDictionary<string, bool?>))]
186
[
JsonSerializable
(typeof(IDictionary<string, Guid?>))]
187
[
JsonSerializable
(typeof(IDictionary<string, DateTime?>))]
189
[
JsonSerializable
(typeof(object[]))]
190
[
JsonSerializable
(typeof(ICollection<object>))]
192
[
JsonSerializable
(typeof(IDictionary<string, object?>))]
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitPersistenceManager.cs (1)
250
[
JsonSerializable
(typeof(Dictionary<int, ComponentMarker>))]
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
76
[
JsonSerializable
(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
Microsoft.AspNetCore.Components.Web (4)
WebRenderer.cs (4)
183
[
JsonSerializable
(typeof(object[]))]
184
[
JsonSerializable
(typeof(int))]
185
[
JsonSerializable
(typeof(Dictionary<string, JSComponentConfigurationStore.JSComponentParameter[]>))]
186
[
JsonSerializable
(typeof(Dictionary<string, List<string>>))]
Microsoft.AspNetCore.Components.WebAssembly (5)
Infrastructure\WebAssemblyJsonSerializerContext.cs (4)
15
[
JsonSerializable
(typeof(ComponentParameter[]))]
16
[
JsonSerializable
(typeof(JsonElement))]
17
[
JsonSerializable
(typeof(IList<object>))]
20
[
JsonSerializable
(typeof(RootComponentOperationBatch))]
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
76
[
JsonSerializable
(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
326
[
JsonSerializable
(typeof(StaticWebAssetManifest))]
327
[
JsonSerializable
(typeof(IDictionary<string, StaticWebAssetNode>))]
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
408
[
JsonSerializable
(typeof(ExceptionExtensionData))]
Microsoft.AspNetCore.Hosting (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
326
[
JsonSerializable
(typeof(StaticWebAssetManifest))]
327
[
JsonSerializable
(typeof(IDictionary<string, StaticWebAssetNode>))]
Microsoft.AspNetCore.Http.Extensions (3)
ProblemDetailsJsonContext.cs (3)
10
[
JsonSerializable
(typeof(ProblemDetails))]
11
[
JsonSerializable
(typeof(HttpValidationProblemDetails))]
14
[
JsonSerializable
(typeof(JsonElement))]
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
103
[
JsonSerializable
(typeof(Todo))]
104
[
JsonSerializable
(typeof(IAsyncEnumerable<JsonTodo>))]
Microsoft.AspNetCore.Http.Results.Tests (8)
HttpResultsHelperTests.cs (6)
249
[
JsonSerializable
(typeof(Todo))]
250
[
JsonSerializable
(typeof(TodoChild))]
251
[
JsonSerializable
(typeof(JsonTodo))]
252
[
JsonSerializable
(typeof(TodoStruct))]
253
[
JsonSerializable
(typeof(IAsyncEnumerable<JsonTodo>))]
254
[
JsonSerializable
(typeof(JsonTodo[]))]
ResultsTests.cs (1)
1788
[
JsonSerializable
(typeof(string))]
TypedResultsTests.cs (1)
1501
[
JsonSerializable
(typeof(object))]
Microsoft.AspNetCore.Identity (17)
Data\IdentityEndpointsJsonSerializerContext.cs (10)
8
[
JsonSerializable
(typeof(RegisterRequest))]
9
[
JsonSerializable
(typeof(LoginRequest))]
10
[
JsonSerializable
(typeof(RefreshRequest))]
11
[
JsonSerializable
(typeof(ResetPasswordRequest))]
12
[
JsonSerializable
(typeof(ForgotPasswordRequest))]
13
[
JsonSerializable
(typeof(ResendConfirmationEmailRequest))]
14
[
JsonSerializable
(typeof(InfoRequest))]
15
[
JsonSerializable
(typeof(InfoResponse))]
16
[
JsonSerializable
(typeof(TwoFactorRequest))]
17
[
JsonSerializable
(typeof(TwoFactorResponse))]
IdentityJsonSerializerContext.cs (7)
9
[
JsonSerializable
(typeof(CollectedClientData))]
10
[
JsonSerializable
(typeof(PublicKeyCredentialCreationOptions))]
11
[
JsonSerializable
(typeof(PublicKeyCredentialRequestOptions))]
12
[
JsonSerializable
(typeof(PublicKeyCredential<AuthenticatorAssertionResponse>))]
13
[
JsonSerializable
(typeof(PublicKeyCredential<AuthenticatorAttestationResponse>))]
14
[
JsonSerializable
(typeof(PasskeyAttestationState))]
15
[
JsonSerializable
(typeof(PasskeyAssertionState))]
Microsoft.AspNetCore.Mvc.Core.Test (2)
Formatters\SystemTextJsonOutputFormatterTest.cs (2)
313
[
JsonSerializable
(typeof(JsonPerson))]
314
[
JsonSerializable
(typeof(IAsyncEnumerable<JsonPerson>))]
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
405
[
JsonSerializable
(typeof(IDictionary<string, string>))]
Microsoft.AspNetCore.OpenApi (3)
Schemas\OpenApiJsonSchemaContext.cs (3)
9
[
JsonSerializable
(typeof(OpenApiJsonSchema))]
10
[
JsonSerializable
(typeof(string))]
11
[
JsonSerializable
(typeof(JsonNode))]
Microsoft.AspNetCore.SignalR.Tests (5)
NativeAotTests.cs (5)
438
[
JsonSerializable
(typeof(object))]
439
[
JsonSerializable
(typeof(string))]
440
[
JsonSerializable
(typeof(int))]
441
[
JsonSerializable
(typeof(short))]
442
[
JsonSerializable
(typeof(char))]
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsManifestJsonContext.cs (1)
8
[
JsonSerializable
(typeof(StaticAssetsManifest))]
Microsoft.CodeAnalysis.LanguageServer (4)
FileBasedPrograms\FileBasedProgramsEntryPointDiscovery.cs (1)
363
[
JsonSerializable
(typeof(Cache))]
FileBasedPrograms\RunApiModels.cs (3)
84
[
JsonSerializable
(typeof(RunApiInput))]
85
[
JsonSerializable
(typeof(RunApiOutput))]
86
[
JsonSerializable
(typeof(LinePositionSpanInternal))]
Microsoft.Extensions.AI (17)
ChatCompletion\OpenTelemetryChatClient.cs (17)
965
[
JsonSerializable
(typeof(IList<object>))]
966
[
JsonSerializable
(typeof(OtelMessage))]
967
[
JsonSerializable
(typeof(OtelGenericPart))]
968
[
JsonSerializable
(typeof(OtelBlobPart))]
969
[
JsonSerializable
(typeof(OtelUriPart))]
970
[
JsonSerializable
(typeof(OtelFilePart))]
971
[
JsonSerializable
(typeof(OtelToolCallRequestPart))]
972
[
JsonSerializable
(typeof(OtelToolCallResponsePart))]
973
[
JsonSerializable
(typeof(OtelServerToolCallPart<OtelCodeInterpreterToolCall>))]
974
[
JsonSerializable
(typeof(OtelServerToolCallResponsePart<OtelCodeInterpreterToolCallResponse>))]
975
[
JsonSerializable
(typeof(OtelServerToolCallPart<OtelImageGenerationToolCall>))]
976
[
JsonSerializable
(typeof(OtelServerToolCallResponsePart<OtelImageGenerationToolCallResponse>))]
977
[
JsonSerializable
(typeof(OtelServerToolCallPart<OtelMcpToolCall>))]
978
[
JsonSerializable
(typeof(OtelServerToolCallResponsePart<OtelMcpToolCallResponse>))]
979
[
JsonSerializable
(typeof(OtelServerToolCallPart<OtelMcpApprovalRequest>))]
980
[
JsonSerializable
(typeof(OtelServerToolCallResponsePart<OtelMcpApprovalResponse>))]
981
[
JsonSerializable
(typeof(IEnumerable<OtelFunction>))]
Microsoft.Extensions.AI.Abstractions (64)
Utilities\AIJsonUtilities.Defaults.cs (64)
84
[
JsonSerializable
(typeof(JsonDocument))]
85
[
JsonSerializable
(typeof(JsonElement))]
86
[
JsonSerializable
(typeof(JsonNode))]
87
[
JsonSerializable
(typeof(JsonObject))]
88
[
JsonSerializable
(typeof(JsonValue))]
89
[
JsonSerializable
(typeof(JsonArray))]
92
[
JsonSerializable
(typeof(string))]
93
[
JsonSerializable
(typeof(char))]
94
[
JsonSerializable
(typeof(short))]
95
[
JsonSerializable
(typeof(ushort))]
96
[
JsonSerializable
(typeof(int))]
97
[
JsonSerializable
(typeof(uint))]
98
[
JsonSerializable
(typeof(long))]
99
[
JsonSerializable
(typeof(ulong))]
100
[
JsonSerializable
(typeof(float))]
101
[
JsonSerializable
(typeof(double))]
102
[
JsonSerializable
(typeof(decimal))]
103
[
JsonSerializable
(typeof(bool))]
104
[
JsonSerializable
(typeof(TimeSpan))]
105
[
JsonSerializable
(typeof(DateTime))]
106
[
JsonSerializable
(typeof(DateTimeOffset))]
109
[
JsonSerializable
(typeof(AIFunctionArguments))]
112
[
JsonSerializable
(typeof(IEnumerable<ChatMessage>))]
113
[
JsonSerializable
(typeof(IList<ChatMessage>))]
114
[
JsonSerializable
(typeof(ChatMessage[]))]
115
[
JsonSerializable
(typeof(ChatOptions))]
116
[
JsonSerializable
(typeof(ChatClientMetadata))]
117
[
JsonSerializable
(typeof(ChatResponse))]
118
[
JsonSerializable
(typeof(ChatResponseUpdate))]
119
[
JsonSerializable
(typeof(IReadOnlyList<ChatResponseUpdate>))]
120
[
JsonSerializable
(typeof(Dictionary<string, object>))]
121
[
JsonSerializable
(typeof(IDictionary<string, object?>))]
122
[
JsonSerializable
(typeof(IEnumerable<string>))]
123
[
JsonSerializable
(typeof(AIContent))]
124
[
JsonSerializable
(typeof(IEnumerable<AIContent>))]
128
[
JsonSerializable
(typeof(UserInputRequestContent))]
129
[
JsonSerializable
(typeof(UserInputResponseContent))]
130
[
JsonSerializable
(typeof(FunctionApprovalRequestContent))]
131
[
JsonSerializable
(typeof(FunctionApprovalResponseContent))]
132
[
JsonSerializable
(typeof(McpServerToolCallContent))]
133
[
JsonSerializable
(typeof(McpServerToolResultContent))]
134
[
JsonSerializable
(typeof(McpServerToolApprovalRequestContent))]
135
[
JsonSerializable
(typeof(McpServerToolApprovalResponseContent))]
136
[
JsonSerializable
(typeof(CodeInterpreterToolCallContent))]
137
[
JsonSerializable
(typeof(CodeInterpreterToolResultContent))]
138
[
JsonSerializable
(typeof(ImageGenerationToolCallContent))]
139
[
JsonSerializable
(typeof(ImageGenerationToolResultContent))]
140
[
JsonSerializable
(typeof(ResponseContinuationToken))]
143
[
JsonSerializable
(typeof(EmbeddingGenerationOptions))]
144
[
JsonSerializable
(typeof(EmbeddingGeneratorMetadata))]
145
[
JsonSerializable
(typeof(Embedding))]
146
[
JsonSerializable
(typeof(Embedding<byte>))]
147
[
JsonSerializable
(typeof(Embedding<int>))]
149
[
JsonSerializable
(typeof(Embedding<Half>))]
151
[
JsonSerializable
(typeof(Embedding<float>))]
152
[
JsonSerializable
(typeof(Embedding<double>))]
155
[
JsonSerializable
(typeof(SpeechToTextOptions))]
156
[
JsonSerializable
(typeof(SpeechToTextClientMetadata))]
157
[
JsonSerializable
(typeof(SpeechToTextResponse))]
158
[
JsonSerializable
(typeof(SpeechToTextResponseUpdate))]
159
[
JsonSerializable
(typeof(IReadOnlyList<SpeechToTextResponseUpdate>))]
162
[
JsonSerializable
(typeof(ImageGenerationOptions))]
163
[
JsonSerializable
(typeof(ImageGenerationResponse))]
172
[
JsonSerializable
(typeof(JsonNode))]
Microsoft.Extensions.AI.Abstractions.Tests (135)
test\Shared\JsonSchemaExporter\SchemaTestHelpers.cs (3)
77
[
JsonSerializable
(typeof(string))]
78
[
JsonSerializable
(typeof(JsonNode))]
79
[
JsonSerializable
(typeof(JsonSchema))]
test\Shared\JsonSchemaExporter\TestTypes.cs (94)
1210
[
JsonSerializable
(typeof(object))]
1211
[
JsonSerializable
(typeof(bool))]
1212
[
JsonSerializable
(typeof(byte))]
1213
[
JsonSerializable
(typeof(ushort))]
1214
[
JsonSerializable
(typeof(uint))]
1215
[
JsonSerializable
(typeof(ulong))]
1216
[
JsonSerializable
(typeof(sbyte))]
1217
[
JsonSerializable
(typeof(short))]
1218
[
JsonSerializable
(typeof(int))]
1219
[
JsonSerializable
(typeof(long))]
1220
[
JsonSerializable
(typeof(float))]
1221
[
JsonSerializable
(typeof(double))]
1222
[
JsonSerializable
(typeof(decimal))]
1224
[
JsonSerializable
(typeof(UInt128))]
1225
[
JsonSerializable
(typeof(Int128))]
1228
[
JsonSerializable
(typeof(Half))]
1230
[
JsonSerializable
(typeof(string))]
1231
[
JsonSerializable
(typeof(char))]
1232
[
JsonSerializable
(typeof(byte[]))]
1233
[
JsonSerializable
(typeof(Memory<byte>))]
1234
[
JsonSerializable
(typeof(ReadOnlyMemory<byte>))]
1235
[
JsonSerializable
(typeof(DateTime))]
1236
[
JsonSerializable
(typeof(DateTimeOffset))]
1237
[
JsonSerializable
(typeof(TimeSpan))]
1239
[
JsonSerializable
(typeof(DateOnly))]
1240
[
JsonSerializable
(typeof(TimeOnly))]
1242
[
JsonSerializable
(typeof(Guid))]
1243
[
JsonSerializable
(typeof(Uri))]
1244
[
JsonSerializable
(typeof(Version))]
1245
[
JsonSerializable
(typeof(JsonDocument))]
1246
[
JsonSerializable
(typeof(JsonElement))]
1247
[
JsonSerializable
(typeof(JsonNode))]
1248
[
JsonSerializable
(typeof(JsonValue))]
1249
[
JsonSerializable
(typeof(JsonObject))]
1250
[
JsonSerializable
(typeof(JsonArray))]
1252
[
JsonSerializable
(typeof(IntEnum))]
1253
[
JsonSerializable
(typeof(StringEnum))]
1254
[
JsonSerializable
(typeof(FlagsStringEnum))]
1256
[
JsonSerializable
(typeof(bool?))]
1257
[
JsonSerializable
(typeof(int?))]
1258
[
JsonSerializable
(typeof(double?))]
1259
[
JsonSerializable
(typeof(Guid?))]
1260
[
JsonSerializable
(typeof(JsonElement?))]
1261
[
JsonSerializable
(typeof(IntEnum?))]
1262
[
JsonSerializable
(typeof(StringEnum?))]
1263
[
JsonSerializable
(typeof(SimpleRecordStruct?))]
1264
[
JsonSerializable
(typeof(DateTimeOffset?))]
1266
[
JsonSerializable
(typeof(SimplePoco))]
1267
[
JsonSerializable
(typeof(SimpleRecord))]
1268
[
JsonSerializable
(typeof(SimpleRecordStruct))]
1269
[
JsonSerializable
(typeof(RecordWithOptionalParameters))]
1270
[
JsonSerializable
(typeof(PocoWithRequiredMembers))]
1271
[
JsonSerializable
(typeof(PocoWithIgnoredMembers))]
1272
[
JsonSerializable
(typeof(PocoWithCustomNaming))]
1273
[
JsonSerializable
(typeof(PocoWithCustomNumberHandling))]
1274
[
JsonSerializable
(typeof(PocoWithCustomNumberHandlingOnProperties))]
1275
[
JsonSerializable
(typeof(PocoWithRecursiveMembers))]
1276
[
JsonSerializable
(typeof(PocoWithNonRecursiveDuplicateOccurrences))]
1277
[
JsonSerializable
(typeof(PocoWithDescription))]
1278
[
JsonSerializable
(typeof(PocoWithCustomConverter))]
1279
[
JsonSerializable
(typeof(PocoWithCustomPropertyConverter))]
1280
[
JsonSerializable
(typeof(PocoWithEnums))]
1281
[
JsonSerializable
(typeof(PocoWithStructFollowedByNullableStruct))]
1282
[
JsonSerializable
(typeof(PocoWithNullableStructFollowedByStruct))]
1283
[
JsonSerializable
(typeof(PocoWithExtensionDataProperty))]
1284
[
JsonSerializable
(typeof(PocoDisallowingUnmappedMembers))]
1285
[
JsonSerializable
(typeof(PocoWithNullableAnnotationAttributes))]
1286
[
JsonSerializable
(typeof(PocoWithNullableAnnotationAttributesOnConstructorParams))]
1287
[
JsonSerializable
(typeof(PocoWithNullableConstructorParameter))]
1288
[
JsonSerializable
(typeof(PocoWithOptionalConstructorParams))]
1289
[
JsonSerializable
(typeof(GenericPocoWithNullableConstructorParameter<string>))]
1290
[
JsonSerializable
(typeof(PocoWithPolymorphism))]
1291
[
JsonSerializable
(typeof(NonAbstractClassWithSingleDerivedType))]
1292
[
JsonSerializable
(typeof(PocoCombiningPolymorphicTypeAndDerivedTypes))]
1293
[
JsonSerializable
(typeof(ClassWithComponentModelAttributes))]
1294
[
JsonSerializable
(typeof(ClassWithOptionalObjectParameter))]
1295
[
JsonSerializable
(typeof(ClassWithPropertiesUsingCustomConverters))]
1297
[
JsonSerializable
(typeof(int[]))]
1298
[
JsonSerializable
(typeof(List<bool>))]
1299
[
JsonSerializable
(typeof(HashSet<string>))]
1300
[
JsonSerializable
(typeof(Queue<double>))]
1301
[
JsonSerializable
(typeof(Stack<char>))]
1302
[
JsonSerializable
(typeof(ImmutableArray<int>))]
1303
[
JsonSerializable
(typeof(ImmutableList<string>))]
1304
[
JsonSerializable
(typeof(ImmutableQueue<bool>))]
1305
[
JsonSerializable
(typeof(object[]))]
1306
[
JsonSerializable
(typeof(System.Collections.ArrayList))]
1307
[
JsonSerializable
(typeof(Dictionary<string, int>))]
1308
[
JsonSerializable
(typeof(SortedDictionary<int, string>))]
1309
[
JsonSerializable
(typeof(Dictionary<string, SimplePoco>))]
1310
[
JsonSerializable
(typeof(Dictionary<string, object>))]
1311
[
JsonSerializable
(typeof(Hashtable))]
1312
[
JsonSerializable
(typeof(StructDictionary<string, int>))]
1313
[
JsonSerializable
(typeof(XElement))]
TestJsonSerializerContext.cs (30)
17
[
JsonSerializable
(typeof(ChatResponse))]
18
[
JsonSerializable
(typeof(ChatResponseUpdate))]
19
[
JsonSerializable
(typeof(SpeechToTextResponse))]
20
[
JsonSerializable
(typeof(SpeechToTextResponseUpdate))]
21
[
JsonSerializable
(typeof(SpeechToTextResponseUpdateKind))]
22
[
JsonSerializable
(typeof(SpeechToTextOptions))]
23
[
JsonSerializable
(typeof(ImageGenerationResponse))]
24
[
JsonSerializable
(typeof(ImageGenerationOptions))]
25
[
JsonSerializable
(typeof(ChatOptions))]
26
[
JsonSerializable
(typeof(EmbeddingGenerationOptions))]
27
[
JsonSerializable
(typeof(Dictionary<string, object?>))]
28
[
JsonSerializable
(typeof(AIFunctionArguments))]
29
[
JsonSerializable
(typeof(int[]))] // Used in ChatMessageContentTests
30
[
JsonSerializable
(typeof(Embedding))] // Used in EmbeddingTests
31
[
JsonSerializable
(typeof(Dictionary<string, JsonDocument>))] // Used in Content tests
32
[
JsonSerializable
(typeof(Dictionary<string, JsonNode>))] // Used in Content tests
33
[
JsonSerializable
(typeof(Dictionary<string, string>))] // Used in Content tests
34
[
JsonSerializable
(typeof(ReadOnlyDictionary<string, string>))] // Used in Content tests
35
[
JsonSerializable
(typeof(DayOfWeek[]))] // Used in Content tests
36
[
JsonSerializable
(typeof(Guid))] // Used in Content tests
37
[
JsonSerializable
(typeof(decimal))] // Used in Content tests
38
[
JsonSerializable
(typeof(HostedMcpServerToolApprovalMode))]
39
[
JsonSerializable
(typeof(ChatResponseFormatTests.SomeType))]
40
[
JsonSerializable
(typeof(ChatResponseFormatTests.TypeWithDisplayName))]
41
[
JsonSerializable
(typeof(ResponseContinuationToken))]
42
[
JsonSerializable
(typeof(UserInputRequestContent[]))]
43
[
JsonSerializable
(typeof(UserInputResponseContent[]))]
44
[
JsonSerializable
(typeof(ReasoningOptions))]
45
[
JsonSerializable
(typeof(ReasoningEffort))]
46
[
JsonSerializable
(typeof(ReasoningOutput))]
Utilities\AIJsonUtilitiesTests.cs (8)
1676
[
JsonSerializable
(typeof(JsonElement))]
1677
[
JsonSerializable
(typeof(CreateJsonSchema_IncorporatesTypesAndAnnotations_Type))]
1678
[
JsonSerializable
(typeof(DerivedAIContent))]
1679
[
JsonSerializable
(typeof(MyPoco))]
1680
[
JsonSerializable
(typeof(MyEnumValue?))]
1681
[
JsonSerializable
(typeof(object[]))]
1682
[
JsonSerializable
(typeof(ClassWithNullableMaxLengthProperty))]
1683
[
JsonSerializable
(typeof(TypeWithRequiredMembers))]
Microsoft.Extensions.AI.Evaluation.Quality (2)
JsonSerialization\SerializerContext.cs (2)
12
[
JsonSerializable
(typeof(RelevanceTruthAndCompletenessRating))]
13
[
JsonSerializable
(typeof(IntentResolutionRating))]
Microsoft.Extensions.AI.Evaluation.Reporting (3)
JsonSerialization\JsonUtilities.cs (3)
43
[
JsonSerializable
(typeof(ScenarioRunResult))]
44
[
JsonSerializable
(typeof(Dataset))]
45
[
JsonSerializable
(typeof(CacheEntry))]
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
JsonSerialization\AzureStorageJsonUtilities.cs (2)
40
[
JsonSerializable
(typeof(ScenarioRunResult))]
41
[
JsonSerializable
(typeof(CacheEntry))]
Microsoft.Extensions.AI.OpenAI (7)
OpenAIJsonContext.cs (7)
18
[
JsonSerializable
(typeof(OpenAIClientExtensions.ToolJson))]
19
[
JsonSerializable
(typeof(IDictionary<string, object?>))]
20
[
JsonSerializable
(typeof(IReadOnlyDictionary<string, object?>))]
21
[
JsonSerializable
(typeof(string[]))]
22
[
JsonSerializable
(typeof(IEnumerable<string>))]
23
[
JsonSerializable
(typeof(JsonElement))]
24
[
JsonSerializable
(typeof(List<OpenAIResponsesChatClient.FunctionToolCallOutputElement>))]
Microsoft.Extensions.AI.Tests (29)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (4)
464
[
JsonSerializable
(typeof(Animal))]
465
[
JsonSerializable
(typeof(Envelope<int>))]
466
[
JsonSerializable
(typeof(Envelope<Animal[]>))]
467
[
JsonSerializable
(typeof(Data<Animal>))]
ChatCompletion\CustomAIContentJsonContext.cs (2)
8
[
JsonSerializable
(typeof(DistributedCachingChatClientTest.CustomAIContent1))]
9
[
JsonSerializable
(typeof(DistributedCachingChatClientTest.CustomAIContent2))]
Functions\AIFunctionFactoryTest.cs (8)
1458
[
JsonSerializable
(typeof(IAsyncEnumerable<int>))]
1459
[
JsonSerializable
(typeof(int[]))]
1460
[
JsonSerializable
(typeof(string))]
1461
[
JsonSerializable
(typeof(Guid))]
1462
[
JsonSerializable
(typeof(StructWithDefaultCtor))]
1463
[
JsonSerializable
(typeof(B))]
1464
[
JsonSerializable
(typeof(int?))]
1465
[
JsonSerializable
(typeof(DateTime?))]
TestJsonSerializerContext.cs (15)
13
[
JsonSerializable
(typeof(ChatResponse))]
14
[
JsonSerializable
(typeof(IList<ChatMessage>))]
15
[
JsonSerializable
(typeof(IReadOnlyList<ChatResponseUpdate>))]
18
[
JsonSerializable
(typeof(bool))]
19
[
JsonSerializable
(typeof(double))]
20
[
JsonSerializable
(typeof(JsonElement))]
21
[
JsonSerializable
(typeof(Embedding<float>))]
22
[
JsonSerializable
(typeof(Dictionary<string, JsonDocument>))]
23
[
JsonSerializable
(typeof(Dictionary<string, JsonNode>))]
24
[
JsonSerializable
(typeof(Dictionary<string, object>))]
25
[
JsonSerializable
(typeof(Dictionary<string, string>))]
26
[
JsonSerializable
(typeof(DayOfWeek[]))]
27
[
JsonSerializable
(typeof(Guid))]
28
[
JsonSerializable
(typeof(ChatOptions))]
29
[
JsonSerializable
(typeof(EmbeddingGenerationOptions))]
Microsoft.Maui (2)
Handlers\HybridWebView\HybridWebViewHandler.cs (2)
311
[
JsonSerializable
(typeof(JSInvokeMethodData))]
312
[
JsonSerializable
(typeof(JSInvokeError))]
Microsoft.ML.Tokenizers (2)
Model\ModelSourceGenerationContext.cs (2)
10
[
JsonSerializable
(typeof(Dictionary<StringSpanOrdinalKey, int>))]
11
[
JsonSerializable
(typeof(Vocabulary))]
Nats.Common (1)
AppEvent.cs (1)
10
[
JsonSerializable
(typeof(AppEvent))]
Shared.Tests (97)
JsonSchemaExporter\SchemaTestHelpers.cs (3)
77
[
JsonSerializable
(typeof(string))]
78
[
JsonSerializable
(typeof(JsonNode))]
79
[
JsonSerializable
(typeof(JsonSchema))]
JsonSchemaExporter\TestTypes.cs (94)
1210
[
JsonSerializable
(typeof(object))]
1211
[
JsonSerializable
(typeof(bool))]
1212
[
JsonSerializable
(typeof(byte))]
1213
[
JsonSerializable
(typeof(ushort))]
1214
[
JsonSerializable
(typeof(uint))]
1215
[
JsonSerializable
(typeof(ulong))]
1216
[
JsonSerializable
(typeof(sbyte))]
1217
[
JsonSerializable
(typeof(short))]
1218
[
JsonSerializable
(typeof(int))]
1219
[
JsonSerializable
(typeof(long))]
1220
[
JsonSerializable
(typeof(float))]
1221
[
JsonSerializable
(typeof(double))]
1222
[
JsonSerializable
(typeof(decimal))]
1224
[
JsonSerializable
(typeof(UInt128))]
1225
[
JsonSerializable
(typeof(Int128))]
1228
[
JsonSerializable
(typeof(Half))]
1230
[
JsonSerializable
(typeof(string))]
1231
[
JsonSerializable
(typeof(char))]
1232
[
JsonSerializable
(typeof(byte[]))]
1233
[
JsonSerializable
(typeof(Memory<byte>))]
1234
[
JsonSerializable
(typeof(ReadOnlyMemory<byte>))]
1235
[
JsonSerializable
(typeof(DateTime))]
1236
[
JsonSerializable
(typeof(DateTimeOffset))]
1237
[
JsonSerializable
(typeof(TimeSpan))]
1239
[
JsonSerializable
(typeof(DateOnly))]
1240
[
JsonSerializable
(typeof(TimeOnly))]
1242
[
JsonSerializable
(typeof(Guid))]
1243
[
JsonSerializable
(typeof(Uri))]
1244
[
JsonSerializable
(typeof(Version))]
1245
[
JsonSerializable
(typeof(JsonDocument))]
1246
[
JsonSerializable
(typeof(JsonElement))]
1247
[
JsonSerializable
(typeof(JsonNode))]
1248
[
JsonSerializable
(typeof(JsonValue))]
1249
[
JsonSerializable
(typeof(JsonObject))]
1250
[
JsonSerializable
(typeof(JsonArray))]
1252
[
JsonSerializable
(typeof(IntEnum))]
1253
[
JsonSerializable
(typeof(StringEnum))]
1254
[
JsonSerializable
(typeof(FlagsStringEnum))]
1256
[
JsonSerializable
(typeof(bool?))]
1257
[
JsonSerializable
(typeof(int?))]
1258
[
JsonSerializable
(typeof(double?))]
1259
[
JsonSerializable
(typeof(Guid?))]
1260
[
JsonSerializable
(typeof(JsonElement?))]
1261
[
JsonSerializable
(typeof(IntEnum?))]
1262
[
JsonSerializable
(typeof(StringEnum?))]
1263
[
JsonSerializable
(typeof(SimpleRecordStruct?))]
1264
[
JsonSerializable
(typeof(DateTimeOffset?))]
1266
[
JsonSerializable
(typeof(SimplePoco))]
1267
[
JsonSerializable
(typeof(SimpleRecord))]
1268
[
JsonSerializable
(typeof(SimpleRecordStruct))]
1269
[
JsonSerializable
(typeof(RecordWithOptionalParameters))]
1270
[
JsonSerializable
(typeof(PocoWithRequiredMembers))]
1271
[
JsonSerializable
(typeof(PocoWithIgnoredMembers))]
1272
[
JsonSerializable
(typeof(PocoWithCustomNaming))]
1273
[
JsonSerializable
(typeof(PocoWithCustomNumberHandling))]
1274
[
JsonSerializable
(typeof(PocoWithCustomNumberHandlingOnProperties))]
1275
[
JsonSerializable
(typeof(PocoWithRecursiveMembers))]
1276
[
JsonSerializable
(typeof(PocoWithNonRecursiveDuplicateOccurrences))]
1277
[
JsonSerializable
(typeof(PocoWithDescription))]
1278
[
JsonSerializable
(typeof(PocoWithCustomConverter))]
1279
[
JsonSerializable
(typeof(PocoWithCustomPropertyConverter))]
1280
[
JsonSerializable
(typeof(PocoWithEnums))]
1281
[
JsonSerializable
(typeof(PocoWithStructFollowedByNullableStruct))]
1282
[
JsonSerializable
(typeof(PocoWithNullableStructFollowedByStruct))]
1283
[
JsonSerializable
(typeof(PocoWithExtensionDataProperty))]
1284
[
JsonSerializable
(typeof(PocoDisallowingUnmappedMembers))]
1285
[
JsonSerializable
(typeof(PocoWithNullableAnnotationAttributes))]
1286
[
JsonSerializable
(typeof(PocoWithNullableAnnotationAttributesOnConstructorParams))]
1287
[
JsonSerializable
(typeof(PocoWithNullableConstructorParameter))]
1288
[
JsonSerializable
(typeof(PocoWithOptionalConstructorParams))]
1289
[
JsonSerializable
(typeof(GenericPocoWithNullableConstructorParameter<string>))]
1290
[
JsonSerializable
(typeof(PocoWithPolymorphism))]
1291
[
JsonSerializable
(typeof(NonAbstractClassWithSingleDerivedType))]
1292
[
JsonSerializable
(typeof(PocoCombiningPolymorphicTypeAndDerivedTypes))]
1293
[
JsonSerializable
(typeof(ClassWithComponentModelAttributes))]
1294
[
JsonSerializable
(typeof(ClassWithOptionalObjectParameter))]
1295
[
JsonSerializable
(typeof(ClassWithPropertiesUsingCustomConverters))]
1297
[
JsonSerializable
(typeof(int[]))]
1298
[
JsonSerializable
(typeof(List<bool>))]
1299
[
JsonSerializable
(typeof(HashSet<string>))]
1300
[
JsonSerializable
(typeof(Queue<double>))]
1301
[
JsonSerializable
(typeof(Stack<char>))]
1302
[
JsonSerializable
(typeof(ImmutableArray<int>))]
1303
[
JsonSerializable
(typeof(ImmutableList<string>))]
1304
[
JsonSerializable
(typeof(ImmutableQueue<bool>))]
1305
[
JsonSerializable
(typeof(object[]))]
1306
[
JsonSerializable
(typeof(System.Collections.ArrayList))]
1307
[
JsonSerializable
(typeof(Dictionary<string, int>))]
1308
[
JsonSerializable
(typeof(SortedDictionary<int, string>))]
1309
[
JsonSerializable
(typeof(Dictionary<string, SimplePoco>))]
1310
[
JsonSerializable
(typeof(Dictionary<string, object>))]
1311
[
JsonSerializable
(typeof(Hashtable))]
1312
[
JsonSerializable
(typeof(StructDictionary<string, int>))]
1313
[
JsonSerializable
(typeof(XElement))]
Wasm.Performance.TestApp (1)
PersonJsonContext.cs (1)
8
[
JsonSerializable
(typeof(Person))]
3 references to JsonSerializable
System.Text.Json (3)
src\libraries\System.Text.Json\Common\JsonSerializableAttribute.cs (1)
25
/// Initializes a new instance of <see cref="
JsonSerializableAttribute
"/> with the specified type.
src\libraries\System.Text.Json\Common\JsonSourceGenerationMode.cs (1)
14
/// and optimized serialization logic should be generated for all types. When specified on <see cref="
JsonSerializableAttribute
.GenerationMode"/>,
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
166
/// Specifies the default source generation mode for type declarations that don't set a <see cref="
JsonSerializableAttribute
.GenerationMode"/>.