1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00

Switch clients to MessagePack mode

This commit is contained in:
Dean Herbert 2021-01-26 17:41:21 +09:00
parent 9537090d28
commit 20cfa991bf
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ namespace osu.Game.Online.Multiplayer
{
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
})
.AddNewtonsoftJsonProtocol(options => { options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; })
.AddMessagePackProtocol()
.Build();
// this is kind of SILLY

View File

@ -121,7 +121,7 @@ namespace osu.Game.Online.Spectator
{
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
})
.AddNewtonsoftJsonProtocol(options => { options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; })
.AddMessagePackProtocol()
.Build();
// until strong typed client support is added, each method must be manually bound (see https://github.com/dotnet/aspnetcore/issues/15198)