From 5c525915cd796ab157eb87a16499e56c85e1c337 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Sun, 24 Feb 2019 09:45:27 -0800 Subject: [PATCH] Update generated source code --- .../Microsoft.AspNetCore.Mvc.Localization.netcoreapp3.0.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mvc/Mvc.Localization/ref/Microsoft.AspNetCore.Mvc.Localization.netcoreapp3.0.cs b/src/Mvc/Mvc.Localization/ref/Microsoft.AspNetCore.Mvc.Localization.netcoreapp3.0.cs index 6a58da85d1..c6a84e9236 100644 --- a/src/Mvc/Mvc.Localization/ref/Microsoft.AspNetCore.Mvc.Localization.netcoreapp3.0.cs +++ b/src/Mvc/Mvc.Localization/ref/Microsoft.AspNetCore.Mvc.Localization.netcoreapp3.0.cs @@ -13,6 +13,7 @@ namespace Microsoft.AspNetCore.Mvc.Localization public virtual Microsoft.Extensions.Localization.LocalizedString GetString(string name, params object[] arguments) { throw null; } protected virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString ToHtmlString(Microsoft.Extensions.Localization.LocalizedString result) { throw null; } protected virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString ToHtmlString(Microsoft.Extensions.Localization.LocalizedString result, object[] arguments) { throw null; } + [System.ObsoleteAttribute("This method is obsolete. Use `CurrentCulture` and `CurrentUICulture` instead.")] public virtual Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer WithCulture(System.Globalization.CultureInfo culture) { throw null; } } public static partial class HtmlLocalizerExtensions @@ -35,6 +36,7 @@ namespace Microsoft.AspNetCore.Mvc.Localization public virtual System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) { throw null; } public virtual Microsoft.Extensions.Localization.LocalizedString GetString(string name) { throw null; } public virtual Microsoft.Extensions.Localization.LocalizedString GetString(string name, params object[] arguments) { throw null; } + [System.ObsoleteAttribute("This method is obsolete. Use `CurrentCulture` and `CurrentUICulture` instead.")] public virtual Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer WithCulture(System.Globalization.CultureInfo culture) { throw null; } } public partial interface IHtmlLocalizer @@ -44,6 +46,7 @@ namespace Microsoft.AspNetCore.Mvc.Localization System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures); Microsoft.Extensions.Localization.LocalizedString GetString(string name); Microsoft.Extensions.Localization.LocalizedString GetString(string name, params object[] arguments); + [System.ObsoleteAttribute("This method is obsolete. Use `CurrentCulture` and `CurrentUICulture` instead.")] Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer WithCulture(System.Globalization.CultureInfo culture); } public partial interface IHtmlLocalizerFactory @@ -76,6 +79,7 @@ namespace Microsoft.AspNetCore.Mvc.Localization public System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) { throw null; } public Microsoft.Extensions.Localization.LocalizedString GetString(string name) { throw null; } public Microsoft.Extensions.Localization.LocalizedString GetString(string name, params object[] values) { throw null; } + [System.ObsoleteAttribute("This method is obsolete. Use `CurrentCulture` and `CurrentUICulture` instead.")] public Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer WithCulture(System.Globalization.CultureInfo culture) { throw null; } } }