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

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

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

Метод Описание
CreateProbeMatchMessage ( string relatesTo, string instanceId, uint messageNumber, ProbeMatchType matches ) : SoapEnvelope

Create a probe match message

Dispose ( ) : void

Dispose the resource of the class

SendMulticast ( SoapEnvelope message ) : void

Send multicast message

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

Send unicast message

StartListening ( ) : void

Start the listener to receive wsdiscovery message

StopListening ( ) : void

Stop the listener to not receive wsdiscovery message

WsDiscoveryService ( ) : System

Initializes a new instance of the WsDiscoveryService class with default transport type

WsDiscoveryService ( ILogPrinter logger ) : System

Initializes a new instance of the WsDiscoveryService class with logger and default transport type

WsDiscoveryService ( TransportType transportType ) : System

Initializes a new instance of the WsDiscoveryService class with specified transport type

WsDiscoveryService ( TransportType transportType, ILogPrinter logger ) : System

Initializes a new instance of the WsDiscoveryService class with logger and specified transport type

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

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

Deserialize the wsdiscovery message

Transport_MessageArrived ( IPEndPoint remoteAddr, byte data ) : void

Receive the wsdicovery message

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

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

Create a probe match message
public CreateProbeMatchMessage ( string relatesTo, string instanceId, uint messageNumber, ProbeMatchType matches ) : SoapEnvelope
relatesTo string The URI of relates to
instanceId string Instance ID
messageNumber uint Message number
matches ProbeMatchType Probe match messages
Результат Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.SoapMessage.SoapEnvelope

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

Dispose the resource of the class
public Dispose ( ) : void
Результат 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

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

Start the listener to receive wsdiscovery message
public StartListening ( ) : void
Результат void

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

Stop the listener to not receive wsdiscovery message
public StopListening ( ) : void
Результат void

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

Initializes a new instance of the WsDiscoveryService class with default transport type
public WsDiscoveryService ( ) : System
Результат System

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

Initializes a new instance of the WsDiscoveryService class with logger and default transport type
public WsDiscoveryService ( ILogPrinter logger ) : System
logger ILogPrinter The logger.
Результат System

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

Initializes a new instance of the WsDiscoveryService class with specified transport type
public WsDiscoveryService ( TransportType transportType ) : System
transportType TransportType Transprot type
Результат System

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

Initializes a new instance of the WsDiscoveryService class with logger and specified transport type
public WsDiscoveryService ( TransportType transportType, ILogPrinter logger ) : System
transportType TransportType The transport type
logger ILogPrinter The logger
Результат System