Beispiel #1
0
        public void Consume(NumberMessage message)
        {
            if (message.Value > 100)
            {
                throw new ArithmeticException("Too big for me!");
            }

            _cache.Register(message.Value);
        }
Beispiel #2
0
        public void Consume(NumberMessage message)
        {
            if (message.Value > 100)
            {
                throw new ArithmeticException("Too big for me!");
            }

            _cache.Register(message.Value);
        }