diff --git a/src/Argon.Entry/Program.cs b/src/Argon.Entry/Program.cs index 2e80c24..dabf84d 100644 --- a/src/Argon.Entry/Program.cs +++ b/src/Argon.Entry/Program.cs @@ -1,6 +1,7 @@ using ActualLab.Fusion; using ActualLab.Rpc; using ActualLab.Rpc.Server; +using ActualLab.Serialization; using Argon.Api; using Argon.Api.Controllers; using Argon.Api.Entities; @@ -36,9 +37,8 @@ .AddServer() .AddServer(); builder.AddSwaggerWithAuthHeader(); -builder.Services.AddSerializer(x => { - x.AddMemoryPackSerializer(); -}).AddOrleansClient(x => { +builder.Services.AddSerializer(x => x.AddMessagePackSerializer(null, null, MessagePackByteSerializer.Default.Options)) + .AddOrleansClient(x => { x.Configure(builder.Configuration.GetSection("Orleans")).AddStreaming(); if (builder.Environment.IsProduction()) x.UseKubeGatewayListProvider();