public void Close() { try { if (m_notificationsAddress != null) { m_publisher.CloseConnection(m_notificationsAddress); } } catch (Exception excp) { logger.Warn("Exception closing notifications connection. " + excp.Message); } InStream.Close(); OutStream.Close(); ErrorStream.Close(); HasClosed = true; //StopPolling = true; if (Closed != null) { Closed(this, new EventArgs()); } }
public void CloseConnection(string address) { m_publisher.CloseConnection(address); }