C# 클래스 Microsoft.Protocols.TestSuites.Pchc.PchcClientAdapter

PCHC adapter implementation to test client behaviors.
상속: Microsoft.Protocols.TestTools.ManagedAdapterBase, IPchcClientAdapter
파일 보기 프로젝트 열기: Microsoft/WindowsProtocolTestSuites

공개 메소드들

메소드 설명
ExpectInitialOfferMessage ( System.TimeSpan timeout ) : InitialOfferMessage

Receive a InitialOfferMessage from the Client.

ExpectSegmentInfoMessage ( System.TimeSpan timeout ) : SegmentInfoMessage

Receive a SegmentInfoMessage from the Client.

Initialize ( ITestSite testSite ) : void

Initialize protocol adapter.

Reset ( ) : void

Reset the adapter

SendHttpStatusCode401 ( ) : void

Send the Http Status Code 401.

SendResponseMessage ( int responseCode ) : void

Send the corresponding response for the request message.

보호된 메소드들

메소드 설명
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. 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.

비공개 메소드들

메소드 설명
GetProperty ( string propName ) : string

Get the value of property in ptfconfig file.

ValidateClientInitialization ( string serverComputerName, string httpsPort, string transProtocol ) : void

Validate client initialization RS.

ValidateConnectionInformation ( CONNECTION_INFORMATION connectInfo ) : void

Validate the CONNECTION_INFORMATION of request message.

ValidateInitialOfferMessage ( INITIAL_OFFER_MESSAGE initialOfferMsg ) : void

Capture the INITIAL_OFFER_MESSAGE message RS

ValidatePccrcCSegment ( Content_Information_Data_Structure segmentInformation, int hashLength ) : void

Validate pccrc cSegments part.

ValidatePccrcSegmentInfoVersion ( Content_Information_Data_Structure segmentInformation, int valueOfDwHashAlgo, int hashLength ) : void

Validate pccrc segment info version part.

ValidateRequestMessageHeader ( MESSAGE_HEADER messageHeader ) : void

Validate the MESSAGE_HEADER of request message.

ValidateSegmentInfoMessage ( SEGMENT_INFO_MESSAGE segmentInfoMsg, string platformOsVersion ) : void

Capture SEGMENT_INFO_MESSAGE message RS

ValidateSegmentInformation ( Content_Information_Data_Structure segmentInformation ) : void

Validate the SegmentInformation in the Segment_info-Message.

ValidateSegmentInformationFromPccrc ( Content_Information_Data_Structure segmentInformation ) : void

Validate the segmentInformation In SEGMTNE_INFO_MESSAGE.

ValidateTransport ( string method ) : void

Validate the transport between the client and the hosted cahce.

메소드 상세

Dispose() 보호된 메소드

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. 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.
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.
리턴 void

ExpectInitialOfferMessage() 공개 메소드

Receive a InitialOfferMessage from the Client.
public ExpectInitialOfferMessage ( System.TimeSpan timeout ) : InitialOfferMessage
timeout System.TimeSpan Waiting for specified timeout to receive the specified request.
리턴 InitialOfferMessage

ExpectSegmentInfoMessage() 공개 메소드

Receive a SegmentInfoMessage from the Client.
public ExpectSegmentInfoMessage ( System.TimeSpan timeout ) : SegmentInfoMessage
timeout System.TimeSpan Waiting for specified timeout to receive the specified request.
리턴 SegmentInfoMessage

Initialize() 공개 메소드

Initialize protocol adapter.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite The test site.
리턴 void

Reset() 공개 메소드

Reset the adapter
public Reset ( ) : void
리턴 void

SendHttpStatusCode401() 공개 메소드

Send the Http Status Code 401.
public SendHttpStatusCode401 ( ) : void
리턴 void

SendResponseMessage() 공개 메소드

Send the corresponding response for the request message.
public SendResponseMessage ( int responseCode ) : void
responseCode int /// The ResponseCode specified the hosted cache server is INTERESTED or OK. /// 1 is for INTERESTED, 0 is for OK. ///
리턴 void