void IMessageVisitor.Visit(SetNextMessageDelayMessage message)
 {
 }
예제 #2
0
 /// <inheritdoc/>
 public virtual void Visit(SetNextMessageDelayMessage message)
 {
 }
        /// <inheritdoc/>
        public override void Visit(SetNextMessageDelayMessage message)
        {
            TimeSpan delay = ScaleDelay(message.Delay);

            if(delay > TimeSpan.Zero)
            {
                Thread.Sleep(delay);
            }

            Delayed = true;
        }