C# Класс Microsoft.Protocols.TestSuites.Pccrr.PccrrServerAdapter

This class is used to provide internal function of sending or receiving message on client.
Наследование: Microsoft.Protocols.TestTools.ManagedAdapterBase, IPccrrServerAdapter
Показать файл Открыть проект

Открытые методы

Метод Описание
Initialize ( ITestSite testSite ) : void

Initialize adapter data and create connection.

Reset ( ) : void

Reset the adapter

SendMsgGetBlkList ( byte sid, BLOCKRANGE blockRang, bool isVersionSupported ) : void

Send message MSG_GETBLKLIST.

SendMsgGetBlks ( byte sid, BLOCKRANGE blockRang, bool isVersionSupported ) : void

Send message MSG_GETBLKS

SendMsgNegoReq ( ) : void

Send message MSG_NEGO_REQ

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
GetProperty ( string propName ) : string

Get the value of property in ptfconfig file.

Описание методов

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.
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

Initialize() публичный Метод

Initialize adapter data and create connection.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite the test site
Результат void

Reset() публичный Метод

Reset the adapter
public Reset ( ) : void
Результат void

SendMsgGetBlkList() публичный Метод

Send message MSG_GETBLKLIST.
public SendMsgGetBlkList ( byte sid, BLOCKRANGE blockRang, bool isVersionSupported ) : void
sid byte segment id.
blockRang BLOCKRANGE Block ranges client wants to get.
isVersionSupported bool The version in message is supported by server or not.
Результат void

SendMsgGetBlks() публичный Метод

Send message MSG_GETBLKS
public SendMsgGetBlks ( byte sid, BLOCKRANGE blockRang, bool isVersionSupported ) : void
sid byte segment id.
blockRang BLOCKRANGE Block ranges client wants to get
isVersionSupported bool The version in this message is supported in server.
Результат void

SendMsgNegoReq() публичный Метод

Send message MSG_NEGO_REQ
public SendMsgNegoReq ( ) : void
Результат void