microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Bot.Core/Schema/CoreActivityJsonContext.cs
26lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Teams.Bot.Core.Schema; |
| 5 | |
| 6 | /// <summary> |
| 7 | /// JSON source generator context for Core activity types. |
| 8 | /// This enables AOT-compatible and reflection-free JSON serialization. |
| 9 | /// </summary> |
| 10 | [JsonSourceGenerationOptions( |
| 11 | WriteIndented = true, |
| 12 | DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, |
| 13 | PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)] |
| 14 | [JsonSerializable(typeof(CoreActivity))] |
| 15 | [JsonSerializable(typeof(ChannelData))] |
| 16 | [JsonSerializable(typeof(Conversation))] |
| 17 | [JsonSerializable(typeof(ConversationAccount))] |
| 18 | [JsonSerializable(typeof(ExtendedPropertiesDictionary))] |
| 19 | [JsonSerializable(typeof(System.Text.Json.JsonElement))] |
| 20 | [JsonSerializable(typeof(System.Int32))] |
| 21 | [JsonSerializable(typeof(System.Boolean))] |
| 22 | [JsonSerializable(typeof(System.Int64))] |
| 23 | [JsonSerializable(typeof(System.Double))] |
| 24 | public partial class CoreActivityJsonContext : JsonSerializerContext |
| 25 | { |
| 26 | } |
| 27 | |