AuthenticationSchemeProvider.GetDefaultSignInSchemeAsync 方法

定义

返回默认情况下将用于的方案 SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties) 。 这通常通过来指定 DefaultSignInScheme 。 否则,这将回退到 DefaultScheme

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationScheme ^> ^ GetDefaultSignInSchemeAsync();
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme> GetDefaultSignInSchemeAsync ();
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme?> GetDefaultSignInSchemeAsync ();
abstract member GetDefaultSignInSchemeAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme>
override this.GetDefaultSignInSchemeAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme>
Public Overridable Function GetDefaultSignInSchemeAsync () As Task(Of AuthenticationScheme)

返回

Task<AuthenticationScheme>

默认情况下将用于的方案 SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

实现

适用于