private static void AddActivities(ISagaBuilder sagaBuilder) { sagaBuilder .AddActivity(new KickAssActivity { Config = new KickAssConfig { KickAssCount = 7 } }) .AddActivity(new ChewBubblegumActivity()); }
private static void AddActivities(ISagaBuilder sagaBuilder) { sagaBuilder .AddActivity <KickAssActivity, KickAssConfig>(x => x.KickAssCount = 7) .AddActivity <ChewBubblegumActivity>(); }
private static void AddActivities(ISagaBuilder sagaBuilder) { sagaBuilder .AddActivity <KickAssActivity>(x => x.Add("KickAssCount", 7)) .AddActivity <ChewBubblegumActivity>(); }