C# 클래스 Hyper.Http.AuthenticationHandler

AuthenticationHandler class.
상속: System.Net.Http.DelegatingHandler
파일 보기 프로젝트 열기: tmitchel2/Hyper

공개 메소드들

메소드 설명
AuthenticationHandler ( HyperHttpSelfHostConfiguration configuration ) : System

Initializes a new instance of the AuthenticationHandler class.

보호된 메소드들

메소드 설명
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

비공개 메소드들

메소드 설명
Authenticate ( HttpRequestMessage request, string username, string password ) : void

Authenticates the specified username password.

FromEncodedUsernamePassword ( string value, string &username, string &password ) : void

Froms the encoded username password.

SetSessionId ( HttpRequestMessage request, System.Guid sessionId ) : void

Sets the session id.

ToEncodedUsernamePassword ( string username, string password ) : string

To the encoded username password.

TryGetUsernamePassword ( HttpRequestMessage request, string &username, string &password, System.Guid &sessionId ) : bool

Gets the username password.

UpdateCookies ( HttpRequestMessage request, HttpResponseMessage response, string username, string password, System.Guid sessionId ) : void

Updates the cookies.

메소드 상세

AuthenticationHandler() 공개 메소드

Initializes a new instance of the AuthenticationHandler class.
public AuthenticationHandler ( HyperHttpSelfHostConfiguration configuration ) : System
configuration Hyper.Http.SelfHost.HyperHttpSelfHostConfiguration The configuration.
리턴 System

SendAsync() 보호된 메소드

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.
protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage The HTTP request message to send to the server.
cancellationToken System.Threading.CancellationToken A cancellation token to cancel operation.
리턴 Task