C# Class Microsoft.Protocols.TestSuites.Pchc.PchcServerAdapter

Verify the server role requirements of MS-PCHC.
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites

Méthodes publiques

Méthode Description
Initialize ( ITestSite testSite ) : void

Initialize protocol adapter.

InitializePchcClient ( ITestSite testSite ) : void

Initialize pchc client.

Reset ( ) : void

Reset the adapter

SendInitialOfferMessage ( byte paddingInMessageHeader, int pccrrPort, byte paddingInConnectionInformation, byte hash ) : ResponseMessage

This action is used to send INITIAL_OFFER_MESSAGE request to and receive the correspondent Response Message from the hosted cache server.

SendSegmentInfoMessage ( byte paddingInMessageHeader, int pccrrPort, byte paddingInConnectionInformation, SegmentInformation segmentInformation ) : ResponseMessage

This action is used to send SEGMENT_INFO_MESSAGE request to and receive the correspondent Response Message from the hosted cache server.

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.

ValidateInitialOfferMessageResponse ( ResponseMessage responseMsg ) : void

Capture the ResponseMessage RS.

ValidateSegmentInfoMessage ( SEGMENT_INFO_MESSAGE segmentInfoMessage ) : void

Validate the SEGMENT_INFO_MESSAGE related RS

ValidateSegmentInfoResponse ( ResponseMessage responseMsg ) : void

Capture the ResponseMessage RS.

ValidateServerInitialization ( int port ) : void

Captrue the hosted cache initialization RS.

ValidateTransport ( string method, string uri ) : void

Capture the Transport RS

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 protocol adapter.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite The test site instance associated with the current adapter.
Résultat void

InitializePchcClient() public méthode

Initialize pchc client.
public InitializePchcClient ( 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

SendInitialOfferMessage() public méthode

This action is used to send INITIAL_OFFER_MESSAGE request to and receive the correspondent Response Message from the hosted cache server.
public SendInitialOfferMessage ( byte paddingInMessageHeader, int pccrrPort, byte paddingInConnectionInformation, byte hash ) : ResponseMessage
paddingInMessageHeader byte An array formed by bytes for message header padding
pccrrPort int /// The port on which MS-PCCRR server-role will be listening if the hosted cache server initiates the /// Peer Content Caching and Retrieval: Retrieval Protocol (PCCRR) framework [MS-PCCRR] as a client-role peer to /// retrieve the missing blocks from the test suite. ///
paddingInConnectionInformation byte An array formed by bytes for connection information padding
hash byte Include segment id
Résultat ResponseMessage

SendSegmentInfoMessage() public méthode

This action is used to send SEGMENT_INFO_MESSAGE request to and receive the correspondent Response Message from the hosted cache server.
public SendSegmentInfoMessage ( byte paddingInMessageHeader, int pccrrPort, byte paddingInConnectionInformation, SegmentInformation segmentInformation ) : ResponseMessage
paddingInMessageHeader byte An array formed by bytes for message header padding
pccrrPort int The port on which MS-PCCRR server-role will be listening.
paddingInConnectionInformation byte An array formed by bytes for connection information padding
segmentInformation SegmentInformation The segment information.
Résultat ResponseMessage