From 36b55fc7ba1fd1b19f8878b87778af73eeaa4213 Mon Sep 17 00:00:00 2001 From: hishamco Date: Tue, 23 Jan 2018 07:53:14 +0300 Subject: [PATCH] Address feedback --- .../ApplicationBuilderExtensions.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs b/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs index 47271237e2..24f89e3bb2 100644 --- a/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs +++ b/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs @@ -58,6 +58,9 @@ namespace Microsoft.AspNetCore.Builder /// /// The . /// + /// + /// This will going to instantiate a new that doesn't come from the services. + /// /// The . public static IApplicationBuilder UseRequestLocalization( this IApplicationBuilder app, @@ -105,7 +108,7 @@ namespace Microsoft.AspNetCore.Builder if (cultures.Length == 0) { - throw new ArgumentException($"The {cultures} cannot be null.", nameof(cultures)); + throw new ArgumentException("Please provide at least one culture."); } var options = new RequestLocalizationOptions()