From 472e4ce6c0d4cebcb0ba5e24dc2892f070ea5f38 Mon Sep 17 00:00:00 2001 From: Mark Junker Date: Tue, 3 Jul 2018 11:16:03 +0200 Subject: [PATCH] Explicitly add Options services Fixes #29 --- src/FubarDev.FtpServer/ServiceCollectionExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FubarDev.FtpServer/ServiceCollectionExtensions.cs b/src/FubarDev.FtpServer/ServiceCollectionExtensions.cs index d62822e0..80e925e9 100644 --- a/src/FubarDev.FtpServer/ServiceCollectionExtensions.cs +++ b/src/FubarDev.FtpServer/ServiceCollectionExtensions.cs @@ -28,6 +28,8 @@ public static IServiceCollection AddFtpServer( this IServiceCollection services, [NotNull] Action configure) { + services.AddOptions(); + services.AddSingleton(); services.AddSingleton();