From e47312aa8c3fce6dba78ebbc788c11dedead3409 Mon Sep 17 00:00:00 2001 From: Jkorf Date: Tue, 8 Oct 2024 15:09:42 +0200 Subject: [PATCH] Fixed ICoinbaseOrderBookFactory DI lifetime --- GateIo.Net/ExtensionMethods/ServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GateIo.Net/ExtensionMethods/ServiceCollectionExtensions.cs b/GateIo.Net/ExtensionMethods/ServiceCollectionExtensions.cs index da6a852..78be4c1 100644 --- a/GateIo.Net/ExtensionMethods/ServiceCollectionExtensions.cs +++ b/GateIo.Net/ExtensionMethods/ServiceCollectionExtensions.cs @@ -61,7 +61,7 @@ public static IServiceCollection AddGateIo( services.AddTransient(); services.AddSingleton(); - services.AddSingleton(); + services.AddTransient(); services.AddTransient(x => x.GetRequiredService().SpotApi.CommonSpotClient); services.RegisterSharedRestInterfaces(x => x.GetRequiredService().SpotApi.SharedClient);