C# 클래스 WebApi2.App_Start.ApplicationAuthenticationHandler

ApplicationAuthenticationHandler
상속: System.Net.Http.DelegatingHandler
파일 보기 프로젝트 열기: megadotnet/ironframework

공개 메소드들

메소드 설명
Check ( string user_id, string password_str ) : bool

接口校验用户名密码

보호된 메소드들

메소드 설명
SendAsync ( HttpRequestMessage request, System cancellationToken ) : System.Threading.Tasks.Task

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

비공개 메소드들

메소드 설명
NLogLogger ( int userId ) : void

ns the log logger.

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

Requests the cancel.

메소드 상세

Check() 공개 메소드

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

SendAsync() 보호된 메소드

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