C# Class Microsoft.Protocols.TestSuites.Pccrtp.PCCRTPClientAdapter

PCCRTP client adapter implementation to test client endpoint.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IPCCRTPClientAdapter
显示文件 Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
Initialize ( ITestSite testSite ) : void

Initialize adapter.

ReceivePccrtpRequestMessage ( ) : PccrtpRequest

Receive a PCCRTP request message from the HTTP/1.1 client (SUT) when testing client endpoint.

Reset ( ) : void

Reset the adapter.

SendPccrtpResponseMessage ( string requestFileFullPath ) : void

Generate and send an PCCRTP response message to the HTTP/1.1 client (SUT) when testing client endpoint.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed.

Private Methods

Method Description
VerifyPccrtpRequestRequirements ( ) : void

Verify requirements about PCCRTP request.

Method Details

Dispose() protected method

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals false, the method has been called by the /// runtime from inside the finalizer and you should not reference /// other objects. Only unmanaged resources can be disposed. ///
return void

Initialize() public method

Initialize adapter.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite The test site instance associated with the current adapter.
return void

ReceivePccrtpRequestMessage() public method

Receive a PCCRTP request message from the HTTP/1.1 client (SUT) when testing client endpoint.
public ReceivePccrtpRequestMessage ( ) : PccrtpRequest
return Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrtp.PccrtpRequest

Reset() public method

Reset the adapter.
public Reset ( ) : void
return void

SendPccrtpResponseMessage() public method

Generate and send an PCCRTP response message to the HTTP/1.1 client (SUT) when testing client endpoint.
public SendPccrtpResponseMessage ( string requestFileFullPath ) : void
requestFileFullPath string Indicate that local full path of the requested file on the driver computer. ///
return void