Added missing doc comments
This commit is contained in:
parent
944c84bc5d
commit
ca4b85e19f
|
|
@ -7,15 +7,23 @@ using Microsoft.Framework.Internal;
|
|||
|
||||
namespace Microsoft.AspNet.Localization
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines the culture information for a request via the configured delegate.
|
||||
/// </summary>
|
||||
public class CustomRequestCultureStrategy : IRequestCultureStrategy
|
||||
{
|
||||
private readonly Func<HttpContext, RequestCulture> _strategy;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="CustomRequestCultureStrategy"/> using the specified delegate.
|
||||
/// </summary>
|
||||
/// <param name="strategy">The strategy delegate.</param>
|
||||
public CustomRequestCultureStrategy([NotNull] Func<HttpContext, RequestCulture> strategy)
|
||||
{
|
||||
_strategy = strategy;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public RequestCulture DetermineRequestCulture([NotNull] HttpContext httpContext)
|
||||
{
|
||||
return _strategy(httpContext);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ using Microsoft.AspNet.Http;
|
|||
|
||||
namespace Microsoft.AspNet.Localization
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a strategy for determining the culture information of an <see cref="HttpRequest"/>.
|
||||
/// </summary>
|
||||
public interface IRequestCultureStrategy
|
||||
{
|
||||
RequestCulture DetermineRequestCulture(HttpContext httpContext);
|
||||
|
|
|
|||
Loading…
Reference in New Issue