protected virtual void GridInstantMessageCompleted(IAsyncResult iar) { GridInstantMessageDelegate icon = (GridInstantMessageDelegate)iar.AsyncState; icon.EndInvoke(iar); }
protected virtual void GridInstantMessageCompleted(IAsyncResult iar) { try { GridInstantMessageDelegate icon = (GridInstantMessageDelegate)iar.AsyncState; icon.EndInvoke(iar); } catch (System.Net.Sockets.SocketException e) { m_log.ErrorFormat("[INSTANT MESSAGE]: Network error sending instant message: {0}", e.Message); } catch (Exception e) { m_log.ErrorFormat("[INSTANT MESSAGE]: Sending instant message failed {0}", e); } }
private void GridInstantMessageCompleted(IAsyncResult iar) { GridInstantMessageDelegate d = (GridInstantMessageDelegate)iar.AsyncState; d.EndInvoke(iar); }