Beispiel #1
0
        public void Start(Action<ITransmissionContext> callback, ITransmissionContext state, int timeout)
        {
            Timeouts = new List<int> { timeout };

            while (Count < Ticks) {
                callback(state);
                Count++;
            }
        }
Beispiel #2
0
        public void Start(Action <ITransmissionContext> callback, ITransmissionContext state, int timeout)
        {
            Timeouts = new List <int> {
                timeout
            };

            while (Count < Ticks)
            {
                callback(state);
                Count++;
            }
        }
Beispiel #3
0
 public void Start(Action <ITransmissionContext> callback, ITransmissionContext state, int timeout)
 {
     _callback = callback;
     _timer    = new Timer(TimerCallback, state, timeout, timeout);
 }
 public void Start(Action<ITransmissionContext> callback, ITransmissionContext state, int timeout)
 {
     _callback = callback;
     _timer = new Timer(TimerCallback, state, timeout, timeout);
 }
 private static void RetryCallback(ITransmissionContext transmissionContext)
 {
 }
 private static void ErrorCallback(ITransmissionContext transmissionContext)
 {
 }
 private void ErrorCallback(ITransmissionContext transmissionContext)
 {
     transmissionContext.Cancel();
     _retransmissions.Remove(transmissionContext.Message.Id);
 }
 private void RetryCallback(ITransmissionContext transmissionContext)
 {
     SendMessageOverLowerLayer(transmissionContext.Message);
 }
Beispiel #9
0
 private void ErrorCallback(ITransmissionContext transmissionContext)
 {
     transmissionContext.Cancel();
     _retransmissions.Remove(transmissionContext.Message.Id);
 }
Beispiel #10
0
 private void RetryCallback(ITransmissionContext transmissionContext)
 {
     SendMessageOverLowerLayer(transmissionContext.Message);
 }
Beispiel #11
0
 private static void ErrorCallback(ITransmissionContext transmissionContext)
 {
 }
Beispiel #12
0
 private static void RetryCallback(ITransmissionContext transmissionContext)
 {
 }