Пример #1
0
            public void Process(QueueMessage message)
            {
                var receiver = message.Body as Receiver;

                if (receiver != null)
                {
                    try
                    {
                        receiver.Do(message.Id.ToString("N"));
                        message.Completed();
                    }
                    catch (Exception ex)
                    {
                        message.State = State.Error;
                    }
                }
            }