use AppSerializerContext singleton
This commit is contained in:
parent
a2ae6d273e
commit
4b5288b237
2 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace TanksServer.Interactivity;
|
||||
|
@ -6,4 +7,5 @@ namespace TanksServer.Interactivity;
|
|||
[JsonSerializable(typeof(IEnumerable<Player>))]
|
||||
[JsonSerializable(typeof(IEnumerable<string>))]
|
||||
[JsonSerializable(typeof(PlayerInfo))]
|
||||
[JsonSourceGenerationOptions(JsonSerializerDefaults.Web)]
|
||||
internal sealed partial class AppSerializerContext : JsonSerializerContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue