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

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

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Release all resources

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

CreateProbeMessage() public method

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

Dispose() public method

Release all resources
public Dispose ( ) : void
return void

Dispose() protected method

Release all resources
protected Dispose ( bool disposing ) : void
disposing bool Indicate user or GC calling this method
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

WsDiscoveryClient() public method

Initializes a new instance of the WsDiscoveryClient class
public WsDiscoveryClient ( ) : System
return System

WsDiscoveryClient() public method

Initializes a new instance of the WsDiscoveryClient class
public WsDiscoveryClient ( ILogPrinter logger ) : System
logger ILogPrinter A instance used to output log
return System

WsDiscoveryClient() public method

Initializes a new instance of the WsDiscoveryClient class
public WsDiscoveryClient ( TransportType transportType ) : System
transportType TransportType Transport type
return System

WsDiscoveryClient() public method

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