Skip to content

Commit d16d426

Browse files
committed
Remove Obsolete constructor in RequestLocalizationMiddleware
1 parent c202344 commit d16d426

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/Middleware/Localization/src/RequestLocalizationMiddleware.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public class RequestLocalizationMiddleware
3636
/// <param name="options">The <see cref="RequestLocalizationOptions"/> representing the options for the
3737
/// <param name="loggerFactory">The <see cref="ILoggerFactory"/> used for logging.</param>
3838
/// <see cref="RequestLocalizationMiddleware"/>.</param>
39-
[ActivatorUtilitiesConstructor]
4039
public RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocalizationOptions> options, ILoggerFactory loggerFactory)
4140
{
4241
if (options == null)
@@ -49,18 +48,6 @@ public RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocal
4948
_options = options.Value;
5049
}
5150

52-
/// <summary>
53-
/// Creates a new <see cref="RequestLocalizationMiddleware"/>.
54-
/// </summary>
55-
/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param>
56-
/// <param name="options">The <see cref="RequestLocalizationOptions"/> representing the options for the
57-
/// <see cref="RequestLocalizationMiddleware"/>.</param>
58-
[Obsolete("This constructor is obsolete and will be removed in a future version. Use RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocalizationOptions> options, ILoggerFactory loggerFactory) instead")]
59-
public RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocalizationOptions> options)
60-
: this(next, options, NullLoggerFactory.Instance)
61-
{
62-
}
63-
6451
/// <summary>
6552
/// Invokes the logic of the middleware.
6653
/// </summary>

0 commit comments

Comments
 (0)