Exemple #1
0
 /// <summary>
 /// Schedule the specified <paramref name="sagaTimeout"/>.
 /// </summary>
 /// <param name="sagaTimeout">The saga timeout to schedule.</param>
 private void ScheduleTimeoutInternal(SagaTimeout sagaTimeout)
 {
     if (sagaTimeout.Timeout < maximumCachedTimeout)
     {
         sagaTimeouts.Add(sagaTimeout);
     }
 }
Exemple #2
0
        /// <summary>
        /// Schedule the specified <paramref name="sagaTimeout"/> (thread-safe).
        /// </summary>
        /// <param name="sagaTimeout">The saga timeout to schedule.</param>
        public void ScheduleTimeout(SagaTimeout sagaTimeout)
        {
            Log.Trace("Scheduling saga timeout for {0}", sagaTimeout);

            lock (syncLock)
            {
                ScheduleTimeoutInternal(sagaTimeout);
            }

            Log.Trace("Saga timeout scheduled for {0}", sagaTimeout);
        }