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

Verify server adapter requirements about MS-PCCRTP.
Show file Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
Initialize ( ITestSite testSite ) : void

Initialize adapter.

Reset ( ) : void

Reset the adapter.

SendPccrtpRequestMessage ( HttpVersionType httpVersion, bool isRequestPartialContent, string uri ) : PccrtpResponse

Send a PCCRTP request message and receive a PCCRTP response message.

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
GetProperty ( string propName ) : string

Get the value of property in ptfconfig file.

VerifyContentInfomationStructure ( PccrtpResponse pccrtpResponse ) : void

Verify requirements about content information structure.

VerifyContentSegmentsBlocks ( PccrtpResponse pccrtpResponse ) : void

Verify Content, Segments, and Blocks defined in section 2.1.

VerifyDataStructure ( PccrtpResponse pccrtpResponse ) : void

Verify Data Structure of Content Information defined in section 2.3.

VerifyPccrtpResponse ( PccrtpResponse pccrtpResponse ) : void

This class is used to verify the requirements related to PCCRTP response.

VerifySegmentContentBlocks ( PccrtpResponse pccrtpResponse ) : void

Verify SegmentContentBlocks defined in section 2.3.1.2.

VerifySegmentDescription ( PccrtpResponse pccrtpResponse ) : void

Verify SegmentDescription defined in section 2.3.1.1.

VerifySegmentIdentifiersAndKeys ( PccrtpResponse pccrtpResponse ) : void

Verify Segment Identifiers (HoHoDK) and Keys defined in section 2.2.

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

Reset() public method

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

SendPccrtpRequestMessage() public method

Send a PCCRTP request message and receive a PCCRTP response message.
public SendPccrtpRequestMessage ( HttpVersionType httpVersion, bool isRequestPartialContent, string uri ) : PccrtpResponse
httpVersion HttpVersionType Indicates the HTTP version type used.
isRequestPartialContent bool Indicates it is requesting partical content or not.
uri string Indicates the URI on the SUT requested by the client.
return Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrtp.PccrtpResponse