public TransientMessageHandlerFactory(TransientMessageServiceBase messageService, Func <IMessage <T>, object> processMessageFn, Action <Exception> processExceptionEx)
        {
            if (messageService == null)
            {
                throw new ArgumentNullException("messageService");
            }

            if (processMessageFn == null)
            {
                throw new ArgumentNullException("processMessageFn");
            }

            this.messageService     = messageService;
            this.processMessageFn   = processMessageFn;
            this.processExceptionFn = processExceptionEx;
        }
 public TransientMessageHandlerFactory(TransientMessageServiceBase messageService, Func <IMessage <T>, object> processMessageFn)
     : this(messageService, processMessageFn, null)
 {
 }