/// <summary> /// Creates a new instance of the context object. /// </summary> /// <param name="context">The HTTP request context</param> /// <param name="options">The middleware options</param> /// <param name="exception">The exception thrown.</param> /// <param name="ticket">The current ticket, if any.</param> public BasicExceptionContext( HttpContext context, BasicOptions options, Exception exception) : base(context) { Exception = exception; }
public BaseBasicContext(HttpContext context, BasicOptions options) : base(context) { if (options == null) { throw new ArgumentNullException(nameof(options)); } Options = options; }
/// <summary> /// Creates a new instance of the context object. /// </summary> /// <param name="context">The HTTP request context</param> /// <param name="options">The middleware options</param> /// <param name="username">The username</param> /// <param name="password">The password</param> public BasicSignInContext( HttpContext context, BasicOptions options, string username, string password ) : base(context, options) { Username = username; Password = password; }