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.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/MatrixRoomUtils.Core/Services/ServiceInstaller.cs b/MatrixRoomUtils.Core/Services/ServiceInstaller.cs
index ef9238d..bd5b1bd 100644
--- a/MatrixRoomUtils.Core/Services/ServiceInstaller.cs
+++ b/MatrixRoomUtils.Core/Services/ServiceInstaller.cs
@@ -1,9 +1,10 @@
+using MatrixRoomUtils.Core.Extensions;
 using Microsoft.Extensions.DependencyInjection;
 
-namespace MatrixRoomUtils.Core.Services; 
+namespace MatrixRoomUtils.Core.Services;
 
 public static class ServiceInstaller {
-    
+
     public static IServiceCollection AddRoryLibMatrixServices(this IServiceCollection services, RoryLibMatrixConfiguration? config = null) {
         //Check required services
         if (!services.Any(x => x.ServiceType == typeof(TieredStorageService)))
@@ -15,15 +16,15 @@ public static class ServiceInstaller {
             services.AddSingleton(new RoryLibMatrixConfiguration());
         }
         //Add services
-        services.AddScoped<HomeserverProviderService>();
+        services.AddSingleton<HomeserverProviderService>();
         services.AddSingleton<HomeserverResolverService>();
-        services.AddScoped<HttpClient>();
+        // services.AddScoped<MatrixHttpClient>();
         return services;
     }
-    
-    
+
+
 }
 
 public class RoryLibMatrixConfiguration {
     public string AppName { get; set; } = "Rory&::LibMatrix";
-}
\ No newline at end of file
+}