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

Wsdiscovery service used to transport wsdicovery messages.
Inheritance: IDisposable
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Deserialize ( string data ) : SoapEnvelope

Deserialize the wsdiscovery message

Transport_MessageArrived ( IPEndPoint remoteAddr, byte data ) : void

Receive the wsdicovery message

Method Details

CreateProbeMatchMessage() public méthode

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

Dispose() public méthode

Dispose the resource of the class
public Dispose ( ) : void
Résultat void

SendMulticast() public méthode

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

SendUnicast() public méthode

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
Résultat void

StartListening() public méthode

Start the listener to receive wsdiscovery message
public StartListening ( ) : void
Résultat void

StopListening() public méthode

Stop the listener to not receive wsdiscovery message
public StopListening ( ) : void
Résultat void

WsDiscoveryService() public méthode

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

WsDiscoveryService() public méthode

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

WsDiscoveryService() public méthode

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

WsDiscoveryService() public méthode

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
Résultat System