From dab9a216085667fb8343f87a25cb1b795a05df38 Mon Sep 17 00:00:00 2001 From: JKorf Date: Mon, 4 Aug 2025 17:12:34 +0200 Subject: [PATCH] Fixed IOrderBookSocketClient Shared interface not getting registered in DI --- CryptoExchange.Net/ExtensionMethods.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CryptoExchange.Net/ExtensionMethods.cs b/CryptoExchange.Net/ExtensionMethods.cs index f1a7b44..dbe6cf9 100644 --- a/CryptoExchange.Net/ExtensionMethods.cs +++ b/CryptoExchange.Net/ExtensionMethods.cs @@ -498,8 +498,8 @@ namespace CryptoExchange.Net services.AddTransient(x => (IBookTickerSocketClient)client(x)!); if (typeof(IKlineSocketClient).IsAssignableFrom(typeof(T))) services.AddTransient(x => (IKlineSocketClient)client(x)!); - if (typeof(IOrderBookRestClient).IsAssignableFrom(typeof(T))) - services.AddTransient(x => (IOrderBookRestClient)client(x)!); + if (typeof(IOrderBookSocketClient).IsAssignableFrom(typeof(T))) + services.AddTransient(x => (IOrderBookSocketClient)client(x)!); if (typeof(ITickerSocketClient).IsAssignableFrom(typeof(T))) services.AddTransient(x => (ITickerSocketClient)client(x)!); if (typeof(ITickersSocketClient).IsAssignableFrom(typeof(T)))