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

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

공개 메소드들

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