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

Verify server adapter requirements about MS-PCCRTP.
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites

Méthodes publiques

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

Méthodes protégées

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

Méthode 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 méthode

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

Initialize() public méthode

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

Reset() public méthode

Reset the adapter.
public Reset ( ) : void
Résultat void

SendPccrtpRequestMessage() public méthode

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.
Résultat Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrtp.PccrtpResponse