示例#1
0
 public override void Configure(HandlerChain handlerChain)
 {
     handlerChain.OfType <StatefulSagaNode>().Each(x =>
     {
         x.Repository = new ConfiguredInstance(typeof(SagaRepositorySample));
     });
 }
示例#2
0
 private static void addExceptionCell(TableRowTag row, HandlerChain chain)
 {
     var exceptionCell = row.Cell();
     var node = chain.OfType<ExceptionHandlerNode>().FirstOrDefault();
     if (node != null)
     {
         var description = Description.For(node);
         var descriptionTag = new DescriptionBodyTag(description);
         exceptionCell.Append(descriptionTag);
     }
 }
示例#3
0
        private void addRow(TableRowTag row, HandlerChain chain)
        {
            addMessageCell(row, chain);
            addExceptionCell(row, chain);
            addOthersCell(row, chain);

            row.Cell().Add("ul", ul => {
                chain.OfType<HandlerCall>().Each(call => {
                    ul.Add("li").Text(call.Description);
                });
            });
        }
示例#4
0
        private static void addExceptionCell(TableRowTag row, HandlerChain chain)
        {
            var exceptionCell = row.Cell();
            var node          = chain.OfType <ExceptionHandlerNode>().FirstOrDefault();

            if (node != null)
            {
                var description    = Description.For(node);
                var descriptionTag = new DescriptionBodyTag(description);
                exceptionCell.Append(descriptionTag);
            }
        }
示例#5
0
        private void addRow(TableRowTag row, HandlerChain chain)
        {
            addMessageCell(row, chain);
            addExceptionCell(row, chain);
            addOthersCell(row, chain);

            row.Cell().Add("ul", ul => {
                chain.OfType <HandlerCall>().Each(call => {
                    ul.Add("li").Text(call.Description);
                });
            });
        }
 public override void Configure(HandlerChain handlerChain)
 {
     var firstCall = handlerChain.OfType<HandlerCall>().First();
     firstCall.AddBefore(new AsyncHandlingNode());
 }
        public override void Configure(HandlerChain handlerChain)
        {
            var firstCall = handlerChain.OfType <HandlerCall>().First();

            firstCall.AddBefore(new AsyncHandlingNode());
        }