From 14f93068e77f590a414a8edcbb8821579c6ead74 Mon Sep 17 00:00:00 2001 From: MSWS Date: Mon, 19 Feb 2024 13:20:57 -0800 Subject: [PATCH] Add registration --- public/Jailbreak.Formatting/Logistics/LanguageConfig.cs | 4 ++++ src/Jailbreak/Jailbreak.csproj | 1 + src/Jailbreak/JailbreakServiceCollection.cs | 2 ++ 3 files changed, 7 insertions(+) diff --git a/public/Jailbreak.Formatting/Logistics/LanguageConfig.cs b/public/Jailbreak.Formatting/Logistics/LanguageConfig.cs index 43a22a42..c988e9f1 100644 --- a/public/Jailbreak.Formatting/Logistics/LanguageConfig.cs +++ b/public/Jailbreak.Formatting/Logistics/LanguageConfig.cs @@ -34,4 +34,8 @@ public void WithRebel() public void WithLogging() where TLogging : class, ILanguage, ILogMessages => _collection.AddSingleton(); + + public void WithLastRequest() + where TLastRequest : class, ILanguage, ILastRequestMessages + => _collection.AddSingleton(); } diff --git a/src/Jailbreak/Jailbreak.csproj b/src/Jailbreak/Jailbreak.csproj index 945c2eeb..58f4520d 100644 --- a/src/Jailbreak/Jailbreak.csproj +++ b/src/Jailbreak/Jailbreak.csproj @@ -58,6 +58,7 @@ + diff --git a/src/Jailbreak/JailbreakServiceCollection.cs b/src/Jailbreak/JailbreakServiceCollection.cs index 733d0dc8..a9208499 100644 --- a/src/Jailbreak/JailbreakServiceCollection.cs +++ b/src/Jailbreak/JailbreakServiceCollection.cs @@ -10,6 +10,7 @@ using Jailbreak.English.Warden; using Jailbreak.Formatting.Logistics; using Jailbreak.Generic; +using Jailbreak.LastRequest; using Jailbreak.Logs; using Jailbreak.Public.Configuration; using Jailbreak.Rebel; @@ -37,6 +38,7 @@ public void ConfigureServices(IServiceCollection serviceCollection) serviceCollection.AddJailbreakTeams(); serviceCollection.AddJailbreakRebel(); serviceCollection.AddJailbreakDebug(); + serviceCollection.AddJailbreakLastRequest(); // Add in english localization serviceCollection.AddLanguage(config =>