aspnetcore/src/Microsoft.AspNetCore.Identity/BuilderExtensions.cs

21 lines
880 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.AspNetCore.Builder
{
/// <summary>
/// Identity extensions for <see cref="IApplicationBuilder"/>.
/// </summary>
public static class BuilderExtensions
{
/// <summary>
/// Enables ASP.NET identity for the current application.
/// </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", error: true)]
public static IApplicationBuilder UseIdentity(this IApplicationBuilder app) => app;
}
}