Skip to content

Commit

Permalink
Added missing doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianEdwards committed May 8, 2015
1 parent 944c84b commit ca4b85e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,23 @@

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);
Expand Down
3 changes: 3 additions & 0 deletions src/Microsoft.AspNet.Localization/IRequestCultureStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

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);
Expand Down

0 comments on commit ca4b85e

Please sign in to comment.