public override void Configure(HandlerChain handlerChain) { handlerChain.OfType <StatefulSagaNode>().Each(x => { x.Repository = new ConfiguredInstance(typeof(SagaRepositorySample)); }); }
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); } }
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); }); }); }
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); } }
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()); }