about summary refs log tree commit diff
path: root/LibMatrix/Services/ServiceInstaller.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/Services/ServiceInstaller.cs')
-rw-r--r--LibMatrix/Services/ServiceInstaller.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/LibMatrix/Services/ServiceInstaller.cs b/LibMatrix/Services/ServiceInstaller.cs
index 358dc2a..0f07b61 100644
--- a/LibMatrix/Services/ServiceInstaller.cs
+++ b/LibMatrix/Services/ServiceInstaller.cs
@@ -3,11 +3,10 @@ using Microsoft.Extensions.DependencyInjection;
 namespace LibMatrix.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)))
-            // throw new Exception("[RMUCore/DI] No TieredStorageService has been registered!");
+        // throw new Exception("[RMUCore/DI] No TieredStorageService has been registered!");
         //Add config
         services.AddSingleton(config ?? new RoryLibMatrixConfiguration());
 
@@ -15,19 +14,17 @@ public static class ServiceInstaller {
         services.AddSingleton<HomeserverResolverService>();
 
         // if (services.First(x => x.ServiceType == typeof(TieredStorageService)).Lifetime == ServiceLifetime.Singleton) {
-            services.AddSingleton<HomeserverProviderService>();
+        services.AddSingleton<HomeserverProviderService>();
         // }
         // else {
-            // services.AddScoped<HomeserverProviderService>();
+        // services.AddScoped<HomeserverProviderService>();
         // }
 
         // services.AddScoped<MatrixHttpClient>();
         return services;
     }
-
-
 }
 
 public class RoryLibMatrixConfiguration {
     public string AppName { get; set; } = "Rory&::LibMatrix";
-}
+}
\ No newline at end of file