Added missing doc comments

This commit is contained in:
damianedwards 2015-05-07 18:19:54 -07:00
parent 944c84bc5d
commit ca4b85e19f
2 changed files with 11 additions and 0 deletions

View File

@ -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);

View File

@ -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);