private async Task CreateSubscribe(IMessageBus bus, string name = "client1") { //create subscriber var subscriber = await bus.CreateSubscriberAsync(new MessageSubscriberOptions() { SubscriptionName = "micake.test" }); await subscriber.SubscribeAsync(); subscriber.AddReceivedHandler(async(sender, msg) => { Console.WriteLine($"{name} --- Received msg:{msg.Body}."); await subscriber.CommitAsync(sender); }); await subscriber.ListenAsync(); subscribers.Add(subscriber); }