Пример #1
0
        public virtual void Process(CronusMessage message)
        {
            var context = new HandleContext(message, handlerType);

            handlerMiddleware.Run(context);
            log.Info(() => message.Payload.ToString());
            log.Debug(() => "HANDLE => " + handlerType.Name + "( " + BuildDebugLog(message) + " )");
        }
Пример #2
0
        public virtual void Process(CronusMessage message)
        {
            var context = new HandleContext(message, handlerType);

            handlerWorkflow.Run(context);
        }
Пример #3
0
        public virtual Task ProcessAsync(CronusMessage message)
        {
            var context = new HandleContext(message, handlerType);

            return(handlerWorkflow.RunAsync(context));
        }