Ejemplo n.º 1
0
 protected virtual bool Visit <TInstance, TBody>(DelegateInstanceBodyActivity <TInstance, TBody> activity)
     where TInstance : class
 {
     Trace.WriteLine("({0})[{1}] Action({2},{3})".FormatWith(activity.State, activity.Event,
                                                             typeof(TInstance).ToShortTypeName(),
                                                             typeof(TBody).ToShortTypeName()));
     return(true);
 }
        public void Configure(ActivityBuilder <TWorkflow, TInstance, TBody> builder)
        {
            var activity = new DelegateInstanceBodyActivity <TInstance, TBody>(builder.State, builder.Event, _action);

            builder.AddActivity(activity);
        }