From d16d426efdb370cea38b594487956744f89d79e6 Mon Sep 17 00:00:00 2001 From: Kahbazi Date: Sun, 17 May 2020 22:42:45 +0430 Subject: [PATCH] Remove Obsolete constructor in RequestLocalizationMiddleware --- .../src/RequestLocalizationMiddleware.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs b/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs index fe56abcef4..876bc4394f 100644 --- a/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs +++ b/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs @@ -36,7 +36,6 @@ namespace Microsoft.AspNetCore.Localization /// The representing the options for the /// The used for logging. /// . - [ActivatorUtilitiesConstructor] public RequestLocalizationMiddleware(RequestDelegate next, IOptions options, ILoggerFactory loggerFactory) { if (options == null) @@ -49,18 +48,6 @@ namespace Microsoft.AspNetCore.Localization _options = options.Value; } - /// - /// Creates a new . - /// - /// The representing the next middleware in the pipeline. - /// The representing the options for the - /// . - [Obsolete("This constructor is obsolete and will be removed in a future version. Use RequestLocalizationMiddleware(RequestDelegate next, IOptions options, ILoggerFactory loggerFactory) instead")] - public RequestLocalizationMiddleware(RequestDelegate next, IOptions options) - : this(next, options, NullLoggerFactory.Instance) - { - } - /// /// Invokes the logic of the middleware. ///