diff options
author | Emma@Rory& <root@rory.gay> | 2023-07-26 21:02:50 +0200 |
---|---|---|
committer | Emma@Rory& <root@rory.gay> | 2023-07-26 21:02:50 +0200 |
commit | 2e89a0717a60598904c92499adb7e01b2075fbb9 (patch) | |
tree | 56b9b7f07180154d9d98dafa91d7c16a0a872100 /MatrixRoomUtils.Core/Services/ServiceInstaller.cs | |
parent | Start of nix flake (diff) | |
download | MatrixUtils-2e89a0717a60598904c92499adb7e01b2075fbb9.tar.xz |
MRU desktop start
Diffstat (limited to 'MatrixRoomUtils.Core/Services/ServiceInstaller.cs')
-rw-r--r-- | MatrixRoomUtils.Core/Services/ServiceInstaller.cs | 15 |
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 +} |