C# Class Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrtp.PccrtpClient

The test client.
Inheritance: IDisposable
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Release resources.

Method Details

CreateHttpRequest() public méthode

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.
Résultat PccrtpRequest

CreatePccrtpRequest() public méthode

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.
Résultat PccrtpRequest

Dispose() public méthode

Release the managed and unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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. ///
Résultat void

PccrtpClient() public méthode

Initializes a new instance of the PccrtpClient class.
public PccrtpClient ( ) : System
Résultat System

PccrtpClient() public méthode

Initializes a new instance of the PccrtpClient class.
public PccrtpClient ( ILogPrinter logger ) : System
logger ILogPrinter An instance of ILogPrinter.
Résultat System

SendHttpRequest() public méthode

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.
Résultat PccrtpResponse

SendHttpRequest() public méthode

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.
Résultat PccrtpResponse