Beispiel #1
0
        /// <summary>
        /// Dispatch a standard <see cref="SagaTimeout" /> message to current
        /// saga.
        /// </summary>
        /// <param name="dateTime"></param>
        /// <param name="timeOutKey">key related to this timeOut, it can be null</param>
        public void DispatchTimeout(DateTime dateTime, string timeOutKey = null)
        {
            var timeout = new SagaTimeout(this.Id, timeOutKey);
            var message = new SagaDeferredMessage(timeout, dateTime);

            Dispatch(message);
        }
Beispiel #2
0
        public void DispatchDeferred(DateTime dateTime, IMessage message)
        {
            var deferredMessage = new SagaDeferredMessage(message, dateTime);

            Dispatch(deferredMessage);
        }