mirror of
https://github.com/osukey/osukey.git
synced 2025-05-11 16:47:19 +09:00
Switch clients to MessagePack mode
This commit is contained in:
parent
9537090d28
commit
20cfa991bf
@ -70,7 +70,7 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
{
|
{
|
||||||
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
|
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
|
||||||
})
|
})
|
||||||
.AddNewtonsoftJsonProtocol(options => { options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; })
|
.AddMessagePackProtocol()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
// this is kind of SILLY
|
// this is kind of SILLY
|
||||||
|
@ -121,7 +121,7 @@ namespace osu.Game.Online.Spectator
|
|||||||
{
|
{
|
||||||
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
|
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
|
||||||
})
|
})
|
||||||
.AddNewtonsoftJsonProtocol(options => { options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; })
|
.AddMessagePackProtocol()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
// until strong typed client support is added, each method must be manually bound (see https://github.com/dotnet/aspnetcore/issues/15198)
|
// until strong typed client support is added, each method must be manually bound (see https://github.com/dotnet/aspnetcore/issues/15198)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user