public void HandleTransmissionSentEvent(object sender, TransmissionProcessedEventArgs e)
        {
            if (e.Response != null && e.Response.StatusCode == 500)
            {
                this.MaxSenderCapacity = 0;
                this.MaxBufferCapacity = 0;
                this.Apply();

                this.Transmitter.Enqueue(e.Transmission);

                this.pauseTimer.Delay = TimeSpan.FromMilliseconds(10);
                this.pauseTimer.Start(
                    () =>
                {
                    this.MaxBufferCapacity = null;
                    this.MaxSenderCapacity = null;
                    this.Apply();

                    this.ActionInvoked.Set();

                    return(null);
                });
            }
        }
示例#2
0
 internal new void OnTransmissionSent(TransmissionProcessedEventArgs e)
 {
     base.OnTransmissionSent(e);
 }
 public new void OnTransmissionDequeued(TransmissionProcessedEventArgs e)
 {
     base.OnTransmissionDequeued(e);
 }
 public new void OnTransmissionSent(TransmissionProcessedEventArgs args)
 {
     base.OnTransmissionSent(args);
 }