Merge branch 'hishamco-dev' into dev
This commit is contained in:
commit
8deb0b1137
|
|
@ -26,8 +26,6 @@ namespace Microsoft.AspNet.Localization
|
|||
|
||||
/// <inheritdoc />
|
||||
public override Task<RequestCulture> DetermineRequestCulture([NotNull] HttpContext httpContext)
|
||||
{
|
||||
return _provider(httpContext);
|
||||
}
|
||||
=> _provider(httpContext);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ namespace Microsoft.AspNet.Builder
|
|||
public static IApplicationBuilder UseRequestLocalization(
|
||||
[NotNull] this IApplicationBuilder builder,
|
||||
[NotNull] RequestLocalizationOptions options)
|
||||
{
|
||||
return builder.UseMiddleware<RequestLocalizationMiddleware>(options);
|
||||
}
|
||||
=> builder.UseMiddleware<RequestLocalizationMiddleware>(options);
|
||||
}
|
||||
}
|
||||
|
|
@ -124,15 +124,9 @@ namespace Microsoft.Framework.Localization
|
|||
/// Returns an <see cref="IEnumerator{LocalizedString}"/> for all strings in the current culture.
|
||||
/// </summary>
|
||||
/// <returns>The <see cref="IEnumerator{LocalizedString}"/>.</returns>
|
||||
public virtual IEnumerator<LocalizedString> GetEnumerator()
|
||||
{
|
||||
return GetEnumerator(CultureInfo.CurrentUICulture);
|
||||
}
|
||||
public virtual IEnumerator<LocalizedString> GetEnumerator() => GetEnumerator(CultureInfo.CurrentUICulture);
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return GetEnumerator();
|
||||
}
|
||||
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
||||
|
||||
/// <summary>
|
||||
/// Returns an <see cref="IEnumerator{LocalizedString}"/> for all strings in the specified culture.
|
||||
|
|
|
|||
|
|
@ -70,9 +70,6 @@ namespace Microsoft.Framework.Localization
|
|||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override IEnumerator<LocalizedString> GetEnumerator()
|
||||
{
|
||||
return GetEnumerator(_culture);
|
||||
}
|
||||
public override IEnumerator<LocalizedString> GetEnumerator() => GetEnumerator(_culture);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue