From 49bb14a7f0906b6e88b7613ac1bc508d1709c06d Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 28 Feb 2025 02:24:24 +0100 Subject: Well known resolver rewrite work --- LibMatrix/Services/ServiceInstaller.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'LibMatrix/Services/ServiceInstaller.cs') diff --git a/LibMatrix/Services/ServiceInstaller.cs b/LibMatrix/Services/ServiceInstaller.cs index 8b7e54b..ecc3f09 100644 --- a/LibMatrix/Services/ServiceInstaller.cs +++ b/LibMatrix/Services/ServiceInstaller.cs @@ -1,5 +1,5 @@ +using LibMatrix.Services.WellKnownResolvers; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; namespace LibMatrix.Services; @@ -9,7 +9,10 @@ public static class ServiceInstaller { services.AddSingleton(config ?? new RoryLibMatrixConfiguration()); //Add services - services.AddSingleton(sp => new HomeserverResolverService(sp.GetRequiredService>())); + services.AddSingleton(); + services.AddSingleton(); + // Legacy + services.AddSingleton(); services.AddSingleton(); return services; -- cgit 1.5.1