Exemplo n.º 1
0
        /// <summary>
        /// Sets the <see cref="InException.Operation"/> based on the configuration in the specified <paramref name="exceptionHandling"/>.
        /// </summary>
        /// <param name="exceptionHandling">The exception handling of the <see cref="ReceivingProcessingMode"/></param>
        public InException SetOperationFor(ReceiveHandling exceptionHandling)
        {
            bool needsToBeNotified = exceptionHandling?.NotifyMessageConsumer == true;

            Operation = needsToBeNotified ? Operation.ToBeNotified : default(Operation);
            return(this);
        }
 public ReceivingProcessingMode()
 {
     Reliability       = new ReceiveReliability();
     ReplyHandling     = new ReplyHandling();
     ExceptionHandling = new ReceiveHandling();
     Security          = new ReceiveSecurity();
     MessagePackaging  = new MessagePackaging();
     MessageHandling   = new MessageHandling();
 }