Esempio n. 1
0
        protected virtual TInputMsg CreateErrorInputMessage(TInputMsg msg, Exception exception)
        {
            //Add the error
            msg.AddError(DataflowMessageError.For(exception));

            //Set the message as broken
            msg.IsBroken = true;

            return(msg);
        }
Esempio n. 2
0
        protected virtual TOutputMsg CreateErrorOutputMessage(Exception exception)
        {
            var msg = CreateOutputMessage();

            //Add the error
            msg.AddError(DataflowMessageError.For(exception));

            //Set the message as broken
            msg.IsBroken = true;

            return(msg);
        }