Skip to content

Commit

Permalink
Make IFtpCommandHandlerExtensionScanner scoped
Browse files Browse the repository at this point in the history
Fixes #72
  • Loading branch information
fubar-coder committed Jun 25, 2019
1 parent 2b9d8fe commit 3117516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FubarDev.FtpServer/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static IServiceCollection AddFtpServer(
services.TryAddScoped<IFtpCommandHandlerProvider, DefaultFtpCommandHandlerProvider>();

// Command handler extensions
services.AddSingleton<IFtpCommandHandlerExtensionScanner>(
services.AddScoped<IFtpCommandHandlerExtensionScanner>(
sp => new AssemblyFtpCommandHandlerExtensionScanner(
sp.GetRequiredService<IFtpCommandHandlerProvider>(),
sp.GetService<ILogger<AssemblyFtpCommandHandlerExtensionScanner>>(),
Expand Down

0 comments on commit 3117516

Please sign in to comment.