private void _processFlowControl(string fcSubject, FlowControlSource source) { // we may get multiple fc/hb messages with the same reply // only need to post to that subject once if (fcSubject != null && !fcSubject.Equals(LastFcSubject)) { conn.Publish(fcSubject, null); LastFcSubject = fcSubject; // set after publish in case the pub fails conn.Opts.FlowControlProcessedEventHandlerOrDefault.Invoke(this, new FlowControlProcessedEventArgs(conn, Sub, fcSubject, source)); } }
public FlowControlProcessedEventArgs(Connection c, Subscription s, string fcSubject, FlowControlSource source) : base(c, s) { FcSubject = fcSubject; Source = source; }