Пример #1
0
 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));
     }
 }
Пример #2
0
 public FlowControlProcessedEventArgs(Connection c, Subscription s, string fcSubject, FlowControlSource source) : base(c, s)
 {
     FcSubject = fcSubject;
     Source    = source;
 }