From 2f01ada65029e9c7029fa916fe235eacc6958430 Mon Sep 17 00:00:00 2001 From: cgcel Date: Thu, 3 Aug 2023 13:19:48 +0800 Subject: [PATCH] update: switch SimplePublish to NanoPublish --- Example/Example.MultiConnections/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Example/Example.MultiConnections/Program.cs b/Example/Example.MultiConnections/Program.cs index 4cdcd13..6f8458d 100644 --- a/Example/Example.MultiConnections/Program.cs +++ b/Example/Example.MultiConnections/Program.cs @@ -47,7 +47,7 @@ { while (true) { - pool.SimplePublish("Connection1", "FooFirstQueueProducer", "Hello from conn1"); + pool.NanoPublish("Connection1", "FooFirstQueueProducer", "Hello from conn1"); Thread.Sleep(1000); } }); @@ -56,7 +56,7 @@ { while (true) { - pool.SimplePublish("Connection1", "FooSecondQueueProducer", "Hello from conn1"); + pool.NanoPublish("Connection1", "FooSecondQueueProducer", "Hello from conn1"); Thread.Sleep(1000); } }); @@ -65,7 +65,7 @@ { while (true) { - pool.SimplePublish("Connection2", "BarFirstQueueProducer", "Hello from conn2"); + pool.NanoPublish("Connection2", "BarFirstQueueProducer", "Hello from conn2"); Thread.Sleep(1000); } });