C# 클래스 Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrtp.PccrtpClient

The test client.
상속: IDisposable
파일 보기 프로젝트 열기: Microsoft/WindowsProtocolTestSuites 1 사용 예제들

공개 메소드들

메소드 설명
CreateHttpRequest ( string serverAddress, int port, string fileName, string>.Dictionary httpHeader ) : PccrtpRequest

Create HTTP request message with custom HTTP header.

CreatePccrtpRequest ( string serverAddress, int port, string requestFileName, BranchCacheVersion version = BranchCacheVersion.V1, bool missingData = false ) : PccrtpRequest

Create PCCRTP request message.

Dispose ( ) : void

Release the managed and unmanaged resources.

PccrtpClient ( ) : System

Initializes a new instance of the PccrtpClient class.

PccrtpClient ( ILogPrinter logger ) : System

Initializes a new instance of the PccrtpClient class.

SendHttpRequest ( HttpVersionType httpVersion, PccrtpRequest request, int timeOut ) : PccrtpResponse

Send HTTP request for the full content and receive HTTP response from the server.

SendHttpRequest ( HttpVersionType httpVersion, PccrtpRequest request, int timeOut, int rangeFrom, int rangeTo ) : PccrtpResponse

Send HTTP request for partial content and receive HTTP response from the server.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Release resources.

메소드 상세

CreateHttpRequest() 공개 메소드

Create HTTP request message with custom HTTP header.
public CreateHttpRequest ( string serverAddress, int port, string fileName, string>.Dictionary httpHeader ) : PccrtpRequest
serverAddress string The server address.
port int The port
fileName string The reuqest uri.
httpHeader string>.Dictionary The HTTP header.
리턴 PccrtpRequest

CreatePccrtpRequest() 공개 메소드

Create PCCRTP request message.
public CreatePccrtpRequest ( string serverAddress, int port, string requestFileName, BranchCacheVersion version = BranchCacheVersion.V1, bool missingData = false ) : PccrtpRequest
serverAddress string The server address.
port int The port.
requestFileName string The request uri.
version BranchCacheVersion Version of branch cache.
missingData bool True if this is a missing data request; false otherwise.
리턴 PccrtpRequest

Dispose() 공개 메소드

Release the managed and unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Release resources.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, managed and unmanaged resources are disposed. /// If false, only unmanaged resources can be disposed. ///
리턴 void

PccrtpClient() 공개 메소드

Initializes a new instance of the PccrtpClient class.
public PccrtpClient ( ) : System
리턴 System

PccrtpClient() 공개 메소드

Initializes a new instance of the PccrtpClient class.
public PccrtpClient ( ILogPrinter logger ) : System
logger ILogPrinter An instance of ILogPrinter.
리턴 System

SendHttpRequest() 공개 메소드

Send HTTP request for the full content and receive HTTP response from the server.
public SendHttpRequest ( HttpVersionType httpVersion, PccrtpRequest request, int timeOut ) : PccrtpResponse
httpVersion HttpVersionType he HTTP version.
request PccrtpRequest The HTTP reqeust.
timeOut int The time out to wait the response.
리턴 PccrtpResponse

SendHttpRequest() 공개 메소드

Send HTTP request for partial content and receive HTTP response from the server.
public SendHttpRequest ( HttpVersionType httpVersion, PccrtpRequest request, int timeOut, int rangeFrom, int rangeTo ) : PccrtpResponse
httpVersion HttpVersionType The HTTP version.
request PccrtpRequest The PCCRTP request.
timeOut int The number of milliseconds to wait before the request times out
rangeFrom int The start position at which to the requested data.
rangeTo int The end position at which to the requested data.
리턴 PccrtpResponse