Fixed event emitter service scope

This commit is contained in:
2025-02-01 12:01:49 +01:00
parent 7ce066df7b
commit bfea4e9cff
2 changed files with 17 additions and 49 deletions

View File

@@ -16,7 +16,7 @@ public static class ServiceCollectionExtensions {
public static IServiceCollection AddHopFrameServices(this IServiceCollection services) {
services.AddScoped<IContextExplorer, ContextExplorer>();
services.TryAddScoped<IHopFrameAuthHandler, DefaultAuthHandler>();
services.TryAddSingleton<IEventEmitter, EventEmitter>();
services.TryAddScoped<IEventEmitter, EventEmitter>();
return services;
}