C# 클래스 CSharpAnalytics.Network.BackgroundHttpWebRequester

Responsible for requesting a queue of URIs over HTTP or HTTPS in background using HttpWebRequest.
상속: BackgroundHttpRequester
파일 보기 프로젝트 열기: TechSmith/CSharpAnalytics 1 사용 예제들

공개 메소드들

메소드 설명
BackgroundHttpWebRequester ( Action preprocessor = null ) : System

Create a new BackgroundHttpWebRequester.

보호된 메소드들

메소드 설명
RequestWithFailureRetry ( Uri requestUri, CancellationToken cancellationToken ) : void

Request the URI with retry logic using HttpWebRequest.

비공개 메소드들

메소드 설명
CreateGetRequest ( Uri requestUri ) : HttpWebRequest

Create a HttpWebRequest using the HTTP GET method.

CreatePostRequest ( Uri requestUri, bool writeBody ) : HttpWebRequest

Create a HttpWebRequest using the HTTP POST method.

CreateRequest ( Uri requestUri, bool writePostBody = true ) : HttpWebRequest

Creates the HttpWebRequest for a URI taking into consideration the length. For URIs over 2000 bytes it will be a GET otherwise it will become a POST with the query payload moved to the POST body.

메소드 상세

BackgroundHttpWebRequester() 공개 메소드

Create a new BackgroundHttpWebRequester.
public BackgroundHttpWebRequester ( Action preprocessor = null ) : System
preprocessor Action Optional preprocessor for setting user agents, debugging etc.
리턴 System

RequestWithFailureRetry() 보호된 메소드

Request the URI with retry logic using HttpWebRequest.
protected RequestWithFailureRetry ( Uri requestUri, CancellationToken cancellationToken ) : void
requestUri System.Uri URI to request.
cancellationToken System.Threading.CancellationToken CancellationToken to indicate if the request should be cancelled.
리턴 void