示例#1
0
 private static void AddActivities(ISagaBuilder sagaBuilder)
 {
     sagaBuilder
     .AddActivity(new KickAssActivity {
         Config = new KickAssConfig {
             KickAssCount = 7
         }
     })
     .AddActivity(new ChewBubblegumActivity());
 }
示例#2
0
 private static void AddActivities(ISagaBuilder sagaBuilder)
 {
     sagaBuilder
     .AddActivity <KickAssActivity, KickAssConfig>(x => x.KickAssCount = 7)
     .AddActivity <ChewBubblegumActivity>();
 }
示例#3
0
 private static void AddActivities(ISagaBuilder sagaBuilder)
 {
     sagaBuilder
     .AddActivity <KickAssActivity>(x => x.Add("KickAssCount", 7))
     .AddActivity <ChewBubblegumActivity>();
 }