From 0dfc0430f47bcc2546251df38856d225ffa09ff4 Mon Sep 17 00:00:00 2001 From: Neil South Date: Thu, 25 Jul 2024 09:29:41 +0100 Subject: [PATCH] try removing new service discovery Signed-off-by: Neil South --- src/InformaticsGateway/Repositories/MonaiServiceLocator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/InformaticsGateway/Repositories/MonaiServiceLocator.cs b/src/InformaticsGateway/Repositories/MonaiServiceLocator.cs index 3fd78bfc..4fab7974 100755 --- a/src/InformaticsGateway/Repositories/MonaiServiceLocator.cs +++ b/src/InformaticsGateway/Repositories/MonaiServiceLocator.cs @@ -57,7 +57,8 @@ public Dictionary GetServiceStatus() if (TypeInterface is null) { var service = _serviceProvider.GetServices()?.FirstOrDefault(i => i.GetType().Name == type.Name); - return service as IMonaiService; + return null; + //return service as IMonaiService; } return (_serviceProvider.GetService(TypeInterface) as IMonaiService);