mirror of
https://github.com/ppy/osu.git
synced 2026-06-05 02:23:38 +08:00
Switch clients to MessagePack mode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user