// 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 Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Authentication { public class HandleRequestContext : BaseContext where TOptions : AuthenticationSchemeOptions { protected HandleRequestContext( HttpContext context, AuthenticationScheme scheme, TOptions options) : base(context, scheme, options) { } /// /// The which is used by the handler. /// public HandleRequestResult Result { get; protected set; } /// /// Discontinue all processing for this request and return to the client. /// The caller is responsible for generating the full response. /// public void HandleResponse() => Result = HandleRequestResult.Handle(); /// /// Discontinue processing the request in the current handler. /// public void SkipHandler() => Result = HandleRequestResult.SkipHandler(); } }