C# Class WebApi2.App_Start.ApplicationAuthenticationHandler

ApplicationAuthenticationHandler
Inheritance: System.Net.Http.DelegatingHandler
Datei anzeigen Open project: megadotnet/ironframework

Public Methods

Method Description
Check ( string user_id, string password_str ) : bool

接口校验用户名密码

Protected Methods

Method Description
SendAsync ( HttpRequestMessage request, System cancellationToken ) : System.Threading.Tasks.Task

以异步操作发送 HTTP 请求到内部管理器以发送到服务器。

Private Methods

Method Description
NLogLogger ( int userId ) : void

ns the log logger.

requestCancel ( HttpRequestMessage request, System cancellationToken, string message ) : System.Threading.Tasks.Task

Requests the cancel.

Method Details

Check() public method

接口校验用户名密码
public Check ( string user_id, string password_str ) : bool
user_id string
password_str string
return bool

SendAsync() protected method

以异步操作发送 HTTP 请求到内部管理器以发送到服务器。
protected SendAsync ( HttpRequestMessage request, System cancellationToken ) : System.Threading.Tasks.Task
request System.Net.Http.HttpRequestMessage 要发送到服务器的 HTTP 请求消息。
cancellationToken System 取消操作的取消标记。
return System.Threading.Tasks.Task