static void Main(string[] args) { try { while (true) { InitializeInstance(); TestMessage testMessage = new TestMessage(); var options = new SendOptions(); options.SetDestination("TestSagaSubscriber"); EndpointInstance.Send(testMessage, options).GetAwaiter().GetResult(); Console.ReadLine(); } } catch (Exception e) { Console.WriteLine(e.Message); Console.ReadLine(); } }
public virtual void AddTestMessage(TestMessage testMessage) { TestMessageCollection.Add(testMessage); }