Пример #1
0
        private static bool ShouldProcess(TransportMessage transportMessage, EventStream stream)
        {
            if (!transportMessage.IsHandledHere())
            {
                return(false);
            }

            if (stream.IsEmpty)
            {
                throw new ApplicationException(
                          string.Format("Could not find an order process with correlation id '{0}'.",
                                        transportMessage.CorrelationId));
            }

            return(true);
        }