From ea9acda0b8e3f9abd3d8dba63a35da3cda21aeb9 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Sat, 26 Mar 2016 17:01:19 -0700 Subject: [PATCH] Quick fix: Correct typo in resource name --- .../Formatters/TextOutputFormatter.cs | 2 +- .../Properties/Resources.Designer.cs | 8 ++++---- src/Microsoft.AspNetCore.Mvc.Core/Resources.resx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/TextOutputFormatter.cs b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/TextOutputFormatter.cs index 05af51ffcb..3b55d46075 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/TextOutputFormatter.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/TextOutputFormatter.cs @@ -150,7 +150,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters /// public sealed override Task WriteResponseBodyAsync(OutputFormatterWriteContext context) { - var message = Resources.FormatTextOutpurFormatter_WriteResponseBodyAsynNotSupported( + var message = Resources.FormatTextOutpurFormatter_WriteResponseBodyAsyncNotSupported( $"{nameof(WriteResponseBodyAsync)}({nameof(OutputFormatterWriteContext)})", nameof(TextOutputFormatter), $"{nameof(WriteResponseBodyAsync)}({nameof(OutputFormatterWriteContext)},{nameof(Encoding)})"); diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Properties/Resources.Designer.cs b/src/Microsoft.AspNetCore.Mvc.Core/Properties/Resources.Designer.cs index 7928fadd7b..534e48688f 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Properties/Resources.Designer.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Properties/Resources.Designer.cs @@ -1117,17 +1117,17 @@ namespace Microsoft.AspNetCore.Mvc.Core /// /// '{0}' is not supported by '{1}'. Use '{2}' instead. /// - internal static string TextOutpurFormatter_WriteResponseBodyAsynNotSupported + internal static string TextOutpurFormatter_WriteResponseBodyAsyncNotSupported { - get { return GetString("TextOutpurFormatter_WriteResponseBodyAsynNotSupported"); } + get { return GetString("TextOutpurFormatter_WriteResponseBodyAsyncNotSupported"); } } /// /// '{0}' is not supported by '{1}'. Use '{2}' instead. /// - internal static string FormatTextOutpurFormatter_WriteResponseBodyAsynNotSupported(object p0, object p1, object p2) + internal static string FormatTextOutpurFormatter_WriteResponseBodyAsyncNotSupported(object p0, object p1, object p2) { - return string.Format(CultureInfo.CurrentCulture, GetString("TextOutpurFormatter_WriteResponseBodyAsynNotSupported"), p0, p1, p2); + return string.Format(CultureInfo.CurrentCulture, GetString("TextOutpurFormatter_WriteResponseBodyAsyncNotSupported"), p0, p1, p2); } /// diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Resources.resx b/src/Microsoft.AspNetCore.Mvc.Core/Resources.resx index e6494c6569..6ca9082df3 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Resources.resx +++ b/src/Microsoft.AspNetCore.Mvc.Core/Resources.resx @@ -334,7 +334,7 @@ The list of '{0}' must not be empty. Add at least one supported encoding. - + '{0}' is not supported by '{1}'. Use '{2}' instead.