C# Class Microsoft.Protocols.TestSuites.Rdpevor.RdpevorAdapter

Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IRdpevorAdapter
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites

Méthodes publiques

Méthode Description
ExpectClientNotification ( byte presentationId, NotificationTypeValues notificationType ) : void

Method to expect a TSMM_CLIENT_NOTIFICATION from client.

ExpectPresentationiResponse ( byte presentationId ) : void

Method to expect a TSMM_PRESENTATION_RESPONSE from client.

Initialize ( ITestSite testSite ) : void
ProtocolInitialize ( RdpedycServer rdpedycServer, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP ) : bool

Initialize this protocol with create control and data channels.

Reset ( ) : void
SendPresentationRequest ( byte presentationId, CommandValues command, uint srcWidth, uint srcHeight, uint scaledWidth, uint scaledHeight, ulong geometryId, VideoSubtype videoType, byte extraData ) : void

Method to send a TSMM_PRESENTATION_REQUEST to client.

SendVideoPacket ( byte presentationId, TsmmVideoData_FlagsValues flags, ushort packetIndex, ushort totalPacketsInSample, uint SampleNumber, byte packetData, ulong timeStamp, bool isCompressed = false ) : void
SendVideoSample ( byte presentationId, bool isKeyFrame, uint SampleNumber, byte sampleData, ulong timeStamp, bool isCompressed = false ) : void

Method to sent a sample to client.

SetTestType ( RdpevorNegativeType negType ) : void

Set the test type to positive or negative test types.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

ExpectClientNotification() public méthode

Method to expect a TSMM_CLIENT_NOTIFICATION from client.
public ExpectClientNotification ( byte presentationId, NotificationTypeValues notificationType ) : void
presentationId byte The expected presentation Id.
notificationType NotificationTypeValues The expected notification type
Résultat void

ExpectPresentationiResponse() public méthode

Method to expect a TSMM_PRESENTATION_RESPONSE from client.
public ExpectPresentationiResponse ( byte presentationId ) : void
presentationId byte The expected presentation Id.
Résultat void

Initialize() public méthode

public Initialize ( ITestSite testSite ) : void
testSite ITestSite
Résultat void

ProtocolInitialize() public méthode

Initialize this protocol with create control and data channels.
public ProtocolInitialize ( RdpedycServer rdpedycServer, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP ) : bool
rdpedycServer Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.RdpedycServer RDPEDYC Server instance
transportType DynamicVC_TransportType selected transport type for created channels
Résultat bool

Reset() public méthode

public Reset ( ) : void
Résultat void

SendPresentationRequest() public méthode

Method to send a TSMM_PRESENTATION_REQUEST to client.
public SendPresentationRequest ( byte presentationId, CommandValues command, uint srcWidth, uint srcHeight, uint scaledWidth, uint scaledHeight, ulong geometryId, VideoSubtype videoType, byte extraData ) : void
presentationId byte A number that uniquely identifies the video stream on the server.
command CommandValues A number that identifies which operation the client is to perform.
srcWidth uint This is the width of the video stream after scaling back to the original resolution.
srcHeight uint This is the height of the video stream after scaling back to the original resolution.
scaledWidth uint This is the width of the video stream.
scaledHeight uint This is the height of the video stream.
geometryId ulong This field is used to correlate this video data with its geometry.
videoType VideoSubtype This field identifies the Media Foundation video subtype of the video stream.
extraData byte
Résultat void

SendVideoPacket() public méthode

public SendVideoPacket ( byte presentationId, TsmmVideoData_FlagsValues flags, ushort packetIndex, ushort totalPacketsInSample, uint SampleNumber, byte packetData, ulong timeStamp, bool isCompressed = false ) : void
presentationId byte
flags TsmmVideoData_FlagsValues
packetIndex ushort
totalPacketsInSample ushort
SampleNumber uint
packetData byte
timeStamp ulong
isCompressed bool
Résultat void

SendVideoSample() public méthode

Method to sent a sample to client.
public SendVideoSample ( byte presentationId, bool isKeyFrame, uint SampleNumber, byte sampleData, ulong timeStamp, bool isCompressed = false ) : void
presentationId byte This is the same number as the PresentationId field in the TSMM_PRESENTATION_REQUEST message.
isKeyFrame bool Is the sample a key frame.
SampleNumber uint The number of sample in the video stream.
sampleData byte
timeStamp ulong
isCompressed bool Whether the packet will be compressed before sent.
Résultat void

SetTestType() public méthode

Set the test type to positive or negative test types.
public SetTestType ( RdpevorNegativeType negType ) : void
negType RdpevorNegativeType The type of current test. None means positive test, others are negative tests.
Résultat void