/** * <summary> * Stops client silently.</summary> * * <param name="client">Client to stop.</param> * <param name="waitCompletion">If <c>true</c> will wait for all pending requests to be proceeded.</param> */ private static void StopSilent(GridClientImpl client, bool waitCompletion) { U.DoSilent <Exception>(() => client.stop(waitCompletion), e => Dbg.WriteLine("Client stop process failed (exception ignored) [client=" + client + ", e=" + e.Message + "]")); }
/** * <summary> * Silent connection close.</summary> * * <param name="conn">Connection to close.</param> * <param name="waitCompletion">If <c>true</c> will wait for all pending requests to be proceeded.</param> */ private static void closeSilent(C conn, bool waitCompletion) { U.DoSilent <Exception>(() => conn.Close(waitCompletion), e => Dbg.WriteLine("Failed to close connection [conn=" + conn + ", e=" + e.Message + "]")); }