예제 #1
0
        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();
            }
        }
예제 #2
0
 public virtual void AddTestMessage(TestMessage testMessage)
 {
     TestMessageCollection.Add(testMessage);
 }