Skip to content

Commit

Permalink
Fixed issue with the nodeid serializer registration. (#7698)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Nov 7, 2024
1 parent 2cae6c3 commit 984e263
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static IRequestExecutorBuilder AddDefaultNodeIdSerializer(
builder.Services.AddSingleton<INodeIdValueSerializer, DoubleNodeIdValueSerializer>();
}

builder.Services.RemoveService<INodeIdSerializer>();
builder.Services.TryAddSingleton<INodeIdSerializer>(sp =>
{
var allSerializers = sp.GetServices<INodeIdValueSerializer>().ToArray();
Expand All @@ -68,6 +69,7 @@ public static IRequestExecutorBuilder AddDefaultNodeIdSerializer(
builder.ConfigureSchemaServices(
services =>
{
services.RemoveService<INodeIdSerializer>();
services.TryAddSingleton<INodeIdSerializer>(sp =>
{
var schema = sp.GetRequiredService<ISchema>();
Expand Down

0 comments on commit 984e263

Please sign in to comment.