C# Class Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.WsDiscoveryService

Wsdiscovery service used to transport wsdicovery messages.
Inheritance: IDisposable
Exibir arquivo Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
Deserialize ( string data ) : SoapEnvelope

Deserialize the wsdiscovery message

Transport_MessageArrived ( IPEndPoint remoteAddr, byte data ) : void

Receive the wsdicovery message

Method Details

CreateProbeMatchMessage() public method

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
return Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.SoapMessage.SoapEnvelope

Dispose() public method

Dispose the resource of the class
public Dispose ( ) : void
return void

SendMulticast() public method

Send multicast message
public SendMulticast ( SoapEnvelope message ) : void
message Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.SoapMessage.SoapEnvelope The multicast message
return void

SendUnicast() public method

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
return void

StartListening() public method

Start the listener to receive wsdiscovery message
public StartListening ( ) : void
return void

StopListening() public method

Stop the listener to not receive wsdiscovery message
public StopListening ( ) : void
return void

WsDiscoveryService() public method

Initializes a new instance of the WsDiscoveryService class with default transport type
public WsDiscoveryService ( ) : System
return System

WsDiscoveryService() public method

Initializes a new instance of the WsDiscoveryService class with logger and default transport type
public WsDiscoveryService ( ILogPrinter logger ) : System
logger ILogPrinter The logger.
return System

WsDiscoveryService() public method

Initializes a new instance of the WsDiscoveryService class with specified transport type
public WsDiscoveryService ( TransportType transportType ) : System
transportType TransportType Transprot type
return System

WsDiscoveryService() public method

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
return System