Close() public method

public Close ( ) : void
return void
Exemplo n.º 1
0
 protected virtual void CloseConnection()
 {
     if (LeClient != null)
     {
         LeClient.Close();
     }
 }
Exemplo n.º 2
0
 protected virtual void CloseConnection()
 {
     try
     {
         if (LeClient != null)
         {
             LogInternal(InternalLogLevel.Info, "Close client");
             LeClient.Close();
         }
     }
     catch (Exception ex)
     {
         if (ex.IsFatal())
         {
             throw;
         }
         LogInternal(InternalLogLevel.Error, "Close client failed: " + ex.Message);
     }
 }