Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Sep 27, 2024
1 parent f86ae91 commit b81c5e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CoinEx.Net/ExtensionMethods/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public static IServiceCollection AddCoinEx(

services.RegisterSharedRestInterfaces(x => x.GetRequiredService<ICoinExRestClient>().SpotApiV2.SharedClient);
services.RegisterSharedSocketInterfaces(x => x.GetRequiredService<ICoinExSocketClient>().SpotApiV2.SharedClient);
services.RegisterSharedRestInterfaces(x => x.GetRequiredService<ICoinExRestClient>().FuturesApi.SharedClient);
services.RegisterSharedSocketInterfaces(x => x.GetRequiredService<ICoinExSocketClient>().FuturesApi.SharedClient);

if (socketClientLifeTime == null)
services.AddSingleton<ICoinExSocketClient, CoinExSocketClient>();
Expand Down

0 comments on commit b81c5e6

Please sign in to comment.