C# Класс Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.WsDiscoveryClient

Wsdiscovery client used to transport wsdicovery messages.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateProbeMessage ( string types, string scopes, string matchBy ) : SoapEnvelope

Create a probe message

Dispose ( ) : void

Release all resources

SendMulticast ( SoapEnvelope message ) : void

Send multicast message

SendUnicast ( SoapEnvelope message, string address, int port ) : void

Send unicast message

WsDiscoveryClient ( ) : System

Initializes a new instance of the WsDiscoveryClient class

WsDiscoveryClient ( ILogPrinter logger ) : System

Initializes a new instance of the WsDiscoveryClient class

WsDiscoveryClient ( TransportType transportType ) : System

Initializes a new instance of the WsDiscoveryClient class

WsDiscoveryClient ( TransportType transportType, ILogPrinter logger ) : System

Initializes a new instance of the WsDiscoveryClient class

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

Метод Описание
Dispose ( bool disposing ) : void

Release all resources

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

Метод Описание
Deserialize ( string data ) : SoapEnvelope

Deserialize the wsdiscovery message

Transport_MessageArrived ( IPEndPoint remoteAddr, byte data ) : void

Receive the wsdicovery message

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

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

Create a probe message
public CreateProbeMessage ( string types, string scopes, string matchBy ) : SoapEnvelope
types string Probe type
scopes string The scopes value
matchBy string Match by
Результат Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.SoapMessage.SoapEnvelope

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

Release all resources
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Release all resources
protected Dispose ( bool disposing ) : void
disposing bool Indicate user or GC calling this method
Результат void

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

Send multicast message
public SendMulticast ( SoapEnvelope message ) : void
message Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.SoapMessage.SoapEnvelope The multicast message
Результат void

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

Send unicast message
public SendUnicast ( SoapEnvelope message, string address, int port ) : void
message Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.SoapMessage.SoapEnvelope The unicast message
address string Destination IP address
port int Destination port
Результат void

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

Initializes a new instance of the WsDiscoveryClient class
public WsDiscoveryClient ( ) : System
Результат System

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

Initializes a new instance of the WsDiscoveryClient class
public WsDiscoveryClient ( ILogPrinter logger ) : System
logger ILogPrinter A instance used to output log
Результат System

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

Initializes a new instance of the WsDiscoveryClient class
public WsDiscoveryClient ( TransportType transportType ) : System
transportType TransportType Transport type
Результат System

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

Initializes a new instance of the WsDiscoveryClient class
public WsDiscoveryClient ( TransportType transportType, ILogPrinter logger ) : System
transportType TransportType Transport type
logger ILogPrinter A instance used to output log
Результат System