diff --git a/src/Shiny.Mediator.AppSupport/AppSupportExtensions.cs b/src/Shiny.Mediator.AppSupport/AppSupportExtensions.cs index f8adc57..08941d9 100644 --- a/src/Shiny.Mediator.AppSupport/AppSupportExtensions.cs +++ b/src/Shiny.Mediator.AppSupport/AppSupportExtensions.cs @@ -8,13 +8,6 @@ namespace Shiny.Mediator; public static class AppSupportExtensions { - public static ShinyConfigurator SetSerializer(this ShinyConfigurator cfg) where TSerializer : class, ISerializerService - { - cfg.Services.AddSingleton(); - return cfg; - } - - /// /// Adds standard app support middleware - offline, replay stream, & user notification /// diff --git a/src/Shiny.Mediator/ShinyConfigurator.cs b/src/Shiny.Mediator/ShinyConfigurator.cs index 6bfd393..09a0afc 100644 --- a/src/Shiny.Mediator/ShinyConfigurator.cs +++ b/src/Shiny.Mediator/ShinyConfigurator.cs @@ -11,7 +11,14 @@ public sealed class ShinyConfigurator(IServiceCollection services) public bool ExcludeDefaultMiddleware { get; set; } + + public ShinyConfigurator SetSerializer() where TSerializer : class, ISerializerService + { + this.Services.AddSingleton(); + return this; + } + public ShinyConfigurator AddHttpClient() { this.Services.Add(new ServiceDescriptor(