Property | Type | Description | |
---|---|---|---|
ApplicationServices | IServiceProvider |
Method | Description | |
---|---|---|
CanOption ( string name, ISession session ) : bool |
判断可选状态是否为真
|
|
CaptchaMiddleware ( RequestDelegate next, ICodeGenerator codeGenerator, IGraphicGenerator graphicGenerator ) : System | ||
DisableOption ( string name, ISession session ) : void |
禁用可选状态
|
|
EnableOption ( string name, ISession session ) : void |
清除可选状态的值,以便启用可选判断
|
|
Invoke ( Microsoft.AspNet.Http.HttpContext context ) : System.Threading.Tasks.Task |
Process an individual request.
|
public static CanOption ( string name, ISession session ) : bool | ||
name | string | |
session | ISession | |
return | bool |
public CaptchaMiddleware ( RequestDelegate next, ICodeGenerator codeGenerator, IGraphicGenerator graphicGenerator ) : System | ||
next | RequestDelegate | |
codeGenerator | ICodeGenerator | |
graphicGenerator | IGraphicGenerator | |
return | System |
public static DisableOption ( string name, ISession session ) : void | ||
name | string | |
session | ISession | |
return | void |
public static EnableOption ( string name, ISession session ) : void | ||
name | string | |
session | ISession | |
return | void |
public Invoke ( Microsoft.AspNet.Http.HttpContext context ) : System.Threading.Tasks.Task | ||
context | Microsoft.AspNet.Http.HttpContext | |
return | System.Threading.Tasks.Task |