コード例 #1
0
 public void Configure(BehaviorGraph graph)
 {
     graph.FirstActions().Where(x => x.InputType().CanBeCastTo<DomainEntity>()).Each(call =>
     {
         call.WrapWith(typeof(EnsureEntityExistsBehavior<>), call.InputType());
     });
 }
コード例 #2
0
 public void Configure(BehaviorGraph graph)
 {
     var transformers = graph.FirstActions().Where(x => x.HandlerType.CanBeCastTo<ISendMessages>());
     transformers.Each(x => {
         x.AddAfter(new SendsMessage(x));
         var chain = x.ParentChain();
         chain.ResourceType(typeof (AjaxContinuation));
     });
 }