Fix the obsolete message on UseIdentity() (#1322)

This commit is contained in:
Nate McMaster 2017-07-19 21:20:14 -07:00 committed by Hao Kung
parent 43e5c8699c
commit 94635ec5ed
1 changed files with 12 additions and 3 deletions

View File

@ -11,12 +11,21 @@ namespace Microsoft.AspNetCore.Builder
public static class BuilderExtensions
{
/// <summary>
/// <para>
/// This method is obsolete and will be removed in a future version.
/// The recommended alternative is <see cref="AuthAppBuilderExtensions.UseAuthentication(IApplicationBuilder)" />
/// </para>
/// <para>
/// Enables ASP.NET identity for the current application.
/// </para>
/// </summary>
/// <param name="app">The <see cref="IApplicationBuilder"/> instance this method extends.</param>
/// <returns>The <see cref="IApplicationBuilder"/> instance this method extends.</returns>
[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470")]
[Obsolete(
"This method is obsolete and will be removed in a future version. " +
"The recommended alternative is UseAuthentication(). " +
"See https://go.microsoft.com/fwlink/?linkid=845470")]
public static IApplicationBuilder UseIdentity(this IApplicationBuilder app)
=> app.UseAuthentication();
=> app.UseAuthentication();
}
}
}