Пример #1
0
        public virtual void Consume(ContinueConcurrentSaga message)
        {
            Trace.WriteLine("Consuming " + message.GetType());
            Thread.Sleep(1000);

            if (Value == -1)
            {
                throw new InvalidOperationException("Should not be a -1 dude!!");
            }

            Value = message.Value;
            Trace.WriteLine("Completed " + message.GetType());
        }