/// <summary>
 /// RPC unbind.
 /// </summary>
 public void Unbind()
 {
     if (rpceClientTransport != null)
     {
         rpceClientTransport.Unbind(rpceTimeout);
         rpceClientTransport = null;
     }
 }
示例#2
0
 /// <summary>
 /// RPCE unbind and disconnect.
 /// </summary>
 /// <param name="timeout">
 /// Timeout period.
 /// </param>
 /// <exception cref="InvalidOperationException">
 /// Thrown when RPC has not been bind.
 /// </exception>
 public void SwnUnbind(TimeSpan timeout)
 {
     if (rpceClientTransport != null)
     {
         rpceClientTransport.Unbind(timeout);
         rpceClientTransport.Dispose();
         rpceClientTransport = null;
     }
 }
 /// <summary>
 /// Unbind and release the handle.
 /// </summary>
 public void UnBind()
 {
     if (RpceClientTransport != null)
     {
         RpceClientTransport.Unbind(RpceTimeout);
         RpceClientTransport.Dispose();
         RpceClientTransport = null;
     }
 }
 /// <summary>
 /// RPCE unbind and disconnect.
 /// </summary>
 /// <param name="timeout">Timeout period.</param>
 /// <exception cref="InvalidOperationException">
 /// Thrown when RPC has not been bind.
 /// </exception>
 public void Unbind(TimeSpan timeout)
 {
     if (rpceClientTransport != null)
     {
         try
         {
             rpceClientTransport.Unbind(timeout);
             rpceClientTransport.Dispose();
         }
         catch
         {
         }
         finally
         {
             rpceClientTransport = null;
         }
     }
 }