示例#1
0
 /// <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;
 }
示例#2
0
        public BaseBasicContext(HttpContext context, BasicOptions options)
            : base(context)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Options = options;
        }
示例#3
0
 /// <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;
 }