AuthenticationBuilder.AddRemoteScheme<TOptions,THandler> 메서드

정의

에서 RemoteAuthenticationHandler<TOptions> 사용할 수 있는 원격 인증을 지원하는 기반 AuthenticationSchemeIAuthenticationService추가합니다.

public:
generic <typename TOptions, typename THandler>
 where TOptions : Microsoft::AspNetCore::Authentication::RemoteAuthenticationOptionsgcnew() where THandler : Microsoft::AspNetCore::Authentication::RemoteAuthenticationHandler<TOptions> virtual Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddRemoteScheme(System::String ^ authenticationScheme, System::String ^ displayName, Action<TOptions> ^ configureOptions);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddRemoteScheme<TOptions,THandler> (string authenticationScheme, string displayName, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() where THandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>;
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddRemoteScheme<TOptions,THandler> (string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() where THandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>;
abstract member AddRemoteScheme : string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options>)
override this.AddRemoteScheme : string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options>)
Public Overridable Function AddRemoteScheme(Of TOptions As {RemoteAuthenticationOptionsNew}, THandler As {RemoteAuthenticationOptionsNew}) (authenticationScheme As String, displayName As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder

형식 매개 변수

TOptions

RemoteAuthenticationOptions 처리기를 구성할 형식입니다.

THandler

RemoteAuthenticationHandler<TOptions> 이 체계를 처리하는 데 사용되는 입니다.

매개 변수

authenticationScheme
String

이 스키마의 이름입니다.

displayName
String

이 구성표의 표시 이름입니다.

configureOptions
Action<TOptions>

구성표 옵션을 구성하는 데 사용됩니다.

반환

작성기입니다.

적용 대상