BaseControlContext Class

Namespace
Microsoft.AspNetCore.Authentication
Assemblies
  • Microsoft.AspNetCore.Authentication

Syntax

public class BaseControlContext : BaseContext
class Microsoft.AspNetCore.Authentication.BaseControlContext

Constructors

BaseControlContext(Microsoft.AspNetCore.Http.HttpContext)
protected BaseControlContext(HttpContext context)

Methods

CheckEventResult(out Microsoft.AspNetCore.Authentication.AuthenticateResult)
Return type:System.Boolean
public bool CheckEventResult(out AuthenticateResult result)
HandleResponse()

Discontinue all processing for this request and return to the client. The caller is responsible for generating the full response. Set the Microsoft.AspNetCore.Authentication.BaseControlContext.Ticket to trigger SignIn.

public void HandleResponse()
SkipToNextMiddleware()

Discontinue processing the request in the current middleware and pass control to the next one. SignIn will not be called.

public void SkipToNextMiddleware()

Properties

Microsoft.AspNetCore.Authentication.BaseControlContext.HandledResponse
Return type:System.Boolean
public bool HandledResponse { get; }
Microsoft.AspNetCore.Authentication.BaseControlContext.Skipped
Return type:System.Boolean
public bool Skipped { get; }
Microsoft.AspNetCore.Authentication.BaseControlContext.State
Return type:Microsoft.AspNetCore.Authentication.EventResultState
public EventResultState State { get; set; }
Microsoft.AspNetCore.Authentication.BaseControlContext.Ticket

Gets or set the Microsoft.AspNetCore.Authentication.BaseControlContext.Ticket to return if this event signals it handled the event.

Return type:Microsoft.AspNetCore.Authentication.AuthenticationTicket
public AuthenticationTicket Ticket { get; set; }