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

The Helper to convert type between adapter and stack
Show file Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
ConvertFromStackForResponseMsg ( RESPONSE_MESSAGE responseMessageStack ) : ResponseMessage

Convert the responsemessage struct defined in adapter to stack

ConvertFromstackForContentInfo ( Content_Information_Data_Structure contentInfoStack ) : SegmentInformation

Convert the ContentInformaiton struct defined in stack to adapter

ConvertToStackForResponseMsg ( ResponseMessage responseMessage ) : RESPONSE_MESSAGE

Convert the responsemessage struct defined in adapter to stack

ConvertTostackForContentInfo ( TestSuites contentInfo ) : TestTools.StackSdk.BranchCache.Pccrc.Content_Information_Data_Structure

Convert the ContentInformaiton struct defined in adapter to stack

Private Methods

Method Description
ConvertFromStackForResponseCode ( RESPONSE_CODE responseCodeStack ) : ResponseCode

Convert the responsecode struct defined in stack to adapter

ConvertFromStackForSegBlocks ( TestTools segmentBlocksStack ) : SegmentContentBlocks[]

Convert the SegmentContentBlocks struct defined in stack to adapter

ConvertFromStackForSegDescription ( TestTools segmentDescriptionStack ) : SegmentDescription[]

Convert the SegmentDescription struct defined in stack to adapter

ConvertFromStackForTransHeader ( TRANSPORT_HEADER transportHeaderStack ) : TransportHeader

Convert the transportheader struct defined in stack to adapter

ConvertFromStackFordwHash ( TestTools stackDwHashValue ) : DwHashAlgo_Values

Convert the dwHashAlgo_Values struct defined in stack to adapter

ConvertToStackForResponseCode ( ResponseCode responseCode ) : RESPONSE_CODE

Convert the responsecode struct defined in adapter to stack

ConvertToStackForSegBlocks ( SegmentContentBlocks segmentBlocks ) : TestTools.StackSdk.BranchCache.Pccrc.SegmentContentBlocks[]

Convert the SegmentContentBlocks struct defined in adapter to stack

ConvertToStackForSegDescription ( SegmentDescription segmentDescription ) : TestTools.StackSdk.BranchCache.Pccrc.SegmentDescription[]

Convert the SegmentDescription struct defined in adapter to stack

ConvertToStackForTransHeader ( TransportHeader transportHeader ) : TRANSPORT_HEADER

Convert the transportheader struct defined in adapter to stack

ConvertToStackFordwHash ( DwHashAlgo_Values adapterdwHashValue ) : TestTools.StackSdk.BranchCache.Pccrc.dwHashAlgo_Values

Convert the dwHashAlgo_Values struct defined in adapter to stack

Method Details

ConvertFromStackForResponseMsg() public static method

Convert the responsemessage struct defined in adapter to stack
public static ConvertFromStackForResponseMsg ( RESPONSE_MESSAGE responseMessageStack ) : ResponseMessage
responseMessageStack Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pchc.RESPONSE_MESSAGE The response message of send initialInfoMeaage or segmentInfoMessage
return ResponseMessage

ConvertFromstackForContentInfo() public static method

Convert the ContentInformaiton struct defined in stack to adapter
public static ConvertFromstackForContentInfo ( Content_Information_Data_Structure contentInfoStack ) : SegmentInformation
contentInfoStack Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.Content_Information_Data_Structure The contentInformation defined in pccrc
return SegmentInformation

ConvertToStackForResponseMsg() public static method

Convert the responsemessage struct defined in adapter to stack
public static ConvertToStackForResponseMsg ( ResponseMessage responseMessage ) : RESPONSE_MESSAGE
responseMessage ResponseMessage The response message of send initialInfoMeaage or segmentInfoMessage
return Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pchc.RESPONSE_MESSAGE

ConvertTostackForContentInfo() public static method

Convert the ContentInformaiton struct defined in adapter to stack
public static ConvertTostackForContentInfo ( TestSuites contentInfo ) : TestTools.StackSdk.BranchCache.Pccrc.Content_Information_Data_Structure
contentInfo TestSuites The contentInformation defined in pccrc
return TestTools.StackSdk.BranchCache.Pccrc.Content_Information_Data_Structure