C# 클래스 Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.WsDiscoveryClient

Wsdiscovery client used to transport wsdicovery messages.
상속: IDisposable
파일 보기 프로젝트 열기: Microsoft/WindowsProtocolTestSuites 1 사용 예제들

공개 메소드들

메소드 설명
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