about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/Services/ServiceInstaller.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Core/Services/ServiceInstaller.cs')
-rw-r--r--MatrixRoomUtils.Core/Services/ServiceInstaller.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MatrixRoomUtils.Core/Services/ServiceInstaller.cs b/MatrixRoomUtils.Core/Services/ServiceInstaller.cs

index 4a831c1..ef9238d 100644 --- a/MatrixRoomUtils.Core/Services/ServiceInstaller.cs +++ b/MatrixRoomUtils.Core/Services/ServiceInstaller.cs
@@ -9,14 +9,14 @@ public static class ServiceInstaller { if (!services.Any(x => x.ServiceType == typeof(TieredStorageService))) throw new Exception("[MRUCore/DI] No TieredStorageService has been registered!"); //Add config - if(config != null) + if(config is not null) services.AddSingleton(config); else { services.AddSingleton(new RoryLibMatrixConfiguration()); } //Add services services.AddScoped<HomeserverProviderService>(); - services.AddScoped<HomeserverResolverService>(); + services.AddSingleton<HomeserverResolverService>(); services.AddScoped<HttpClient>(); return services; }