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 ae28a93 commit 5cfd911
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static IServiceCollection AddCoinbase(

services.AddTransient<ICryptoRestClient, CryptoRestClient>();
services.AddSingleton<ICryptoSocketClient, CryptoSocketClient>();
services.AddSingleton<ICoinbaseOrderBookFactory, CoinbaseOrderBookFactory>();
services.AddTransient<ICoinbaseOrderBookFactory, CoinbaseOrderBookFactory>();

services.RegisterSharedRestInterfaces(x => x.GetRequiredService<ICoinbaseRestClient>().AdvancedTradeApi.SharedClient);
services.RegisterSharedSocketInterfaces(x => x.GetRequiredService<ICoinbaseSocketClient>().AdvancedTradeApi.SharedClient);
Expand Down

0 comments on commit 5cfd911

Please sign in to comment.