Make 'DefaultCookieName' static readonly field instead of a property
DefaultCookieName as Constant Add empty line
This commit is contained in:
parent
01d0b5db22
commit
c228b65d47
|
|
@ -18,6 +18,11 @@ namespace Microsoft.AspNet.Localization
|
||||||
private static readonly string _culturePrefix = "c=";
|
private static readonly string _culturePrefix = "c=";
|
||||||
private static readonly string _uiCulturePrefix = "uic=";
|
private static readonly string _uiCulturePrefix = "uic=";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Represent the default cookie name used to track the user's preferred culture information, which is "ASPNET_CULTURE".
|
||||||
|
/// </summary>
|
||||||
|
public static readonly string DefaultCookieName = "ASPNET_CULTURE";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The name of the cookie that contains the user's preferred culture information.
|
/// The name of the cookie that contains the user's preferred culture information.
|
||||||
/// Defaults to <see cref="DefaultCookieName"/>.
|
/// Defaults to <see cref="DefaultCookieName"/>.
|
||||||
|
|
@ -41,11 +46,6 @@ namespace Microsoft.AspNet.Localization
|
||||||
return Task.FromResult(requestCulture);
|
return Task.FromResult(requestCulture);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The default name of the cookie used to track the user's preferred culture information.
|
|
||||||
/// </summary>
|
|
||||||
public static string DefaultCookieName { get; } = "ASPNET_CULTURE";
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a string representation of a <see cref="RequestCulture"/> for placement in a cookie.
|
/// Creates a string representation of a <see cref="RequestCulture"/> for placement in a cookie.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue