/// <summary>
        /// Method used to send an http Bye message to specified endpoint. Use for managed discovery.
        /// </summary>
        /// <param name="endpointAddress">A string containing the endpoint address of a listening client.</param>
        public void DirectedBye(string endpointAddress, DpwsDiscoGreeting greeting, ProtocolVersion version)
        {
            WsMessage greetingsMessage = greeting.BuildByeMessage(endpointAddress, null, null);

            Ws.Services.Transport.HTTP.WsHttpClient httpClient = new Ws.Services.Transport.HTTP.WsHttpClient(version);
            httpClient.SendRequestOneWay(greetingsMessage, new Uri(endpointAddress));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Method used to send an http Bye message to specified endpoint. Use for managed discovery.
 /// </summary>
 /// <param name="endpointAddress">A string containing the endpoint address of a listening client.</param>
 public void DirectedBye(string endpointAddress)
 {
     byte[] greetingsMessage = DpwsDiscoGreeting.BuildByeMessage(endpointAddress, null, null);
     Ws.Services.Transport.HTTP.WsHttpClient httpClient = new Ws.Services.Transport.HTTP.WsHttpClient();
     httpClient.SendRequest(greetingsMessage, endpointAddress, true, false);
     return;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Method used to send an http Bye message to specified endpoint. Use for managed discovery.
 /// </summary>
 /// <param name="endpointAddress">A string containing the endpoint address of a listening client.</param>
 public void DirectedBye(string endpointAddress, DpwsDiscoGreeting greeting, ProtocolVersion version)
 {
     WsMessage greetingsMessage = greeting.BuildByeMessage(endpointAddress, null, null);
     Ws.Services.Transport.HTTP.WsHttpClient httpClient = new Ws.Services.Transport.HTTP.WsHttpClient(version);
     httpClient.SendRequestOneWay(greetingsMessage, new Uri(endpointAddress));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Method used to send an http Bye message to specified endpoint. Use for managed discovery.
 /// </summary>
 /// <param name="endpointAddress">A string containing the endpoint address of a listening client.</param>
 public void DirectedBye(string endpointAddress)
 {
     byte[] greetingsMessage = DpwsDiscoGreeting.BuildByeMessage(endpointAddress, null, null);
     Ws.Services.Transport.HTTP.WsHttpClient httpClient = new Ws.Services.Transport.HTTP.WsHttpClient();
     httpClient.SendRequest(greetingsMessage, endpointAddress, true, false);
     return;
 }