C# 클래스 WebApi.Middlewares.ApiAuthorizedMiddleware

파일 보기 프로젝트 열기: hwqdt/Demos

공개 메소드들

메소드 설명
ApiAuthorizedMiddleware ( RequestDelegate next, IOptions options ) : Common
Invoke ( HttpContext context ) : Task

비공개 메소드들

메소드 설명
Check ( HttpContext context, RequestInfo requestInfo ) : Task

the main check method

CheckApplication ( HttpContext context, string applicationId, string applicationPassword ) : Task

check the application

CheckExpiredTime ( double timestamp, double expiredSecond ) : bool

check the expired time

GetAllApplications ( ) : IList

return the application infomations

GetInvoke ( HttpContext context ) : Task

http get invoke

PostInvoke ( HttpContext context ) : Task

http post invoke

ReturnNoAuthorized ( HttpContext context ) : Task

not authorized request

ReturnTimeOut ( HttpContext context ) : Task

timeout request

메소드 상세

ApiAuthorizedMiddleware() 공개 메소드

public ApiAuthorizedMiddleware ( RequestDelegate next, IOptions options ) : Common
next RequestDelegate
options IOptions
리턴 Common

Invoke() 공개 메소드

public Invoke ( HttpContext context ) : Task
context HttpContext
리턴 Task