Skip to content

Commit

Permalink
Fixed ICoinbaseOrderBookFactory DI lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Oct 8, 2024
1 parent 286f11f commit e47312a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GateIo.Net/ExtensionMethods/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static IServiceCollection AddGateIo(

services.AddTransient<ICryptoRestClient, CryptoRestClient>();
services.AddSingleton<ICryptoSocketClient, CryptoSocketClient>();
services.AddSingleton<IGateIoOrderBookFactory, GateIoOrderBookFactory>();
services.AddTransient<IGateIoOrderBookFactory, GateIoOrderBookFactory>();
services.AddTransient(x => x.GetRequiredService<IGateIoRestClient>().SpotApi.CommonSpotClient);

services.RegisterSharedRestInterfaces(x => x.GetRequiredService<IGateIoRestClient>().SpotApi.SharedClient);
Expand Down

0 comments on commit e47312a

Please sign in to comment.