Skip to content

Commit

Permalink
try removing new service discovery
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <neil.south@answerdigital.com>
  • Loading branch information
neildsouth committed Jul 25, 2024
1 parent 2384817 commit 0dfc043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/InformaticsGateway/Repositories/MonaiServiceLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public Dictionary<string, ServiceStatus> GetServiceStatus()
if (TypeInterface is null)
{
var service = _serviceProvider.GetServices<IHostedService>()?.FirstOrDefault(i => i.GetType().Name == type.Name);
return service as IMonaiService;
return null;
//return service as IMonaiService;
}
return (_serviceProvider.GetService(TypeInterface) as IMonaiService);

Expand Down

0 comments on commit 0dfc043

Please sign in to comment.