From 89feacb07842286be9c7b1c8f9c9750d3837396e Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Tue, 6 Feb 2024 16:33:26 +0800 Subject: [PATCH] Update Configure.Mq.cs --- MyApp/Configure.Mq.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyApp/Configure.Mq.cs b/MyApp/Configure.Mq.cs index 1fa42cc..c7e07ae 100644 --- a/MyApp/Configure.Mq.cs +++ b/MyApp/Configure.Mq.cs @@ -24,11 +24,11 @@ public void Configure(IWebHostBuilder builder) => builder services.AddSingleton(c => new BackgroundMqService()); }) .ConfigureAppHost(afterAppHostInit: appHost => { - appHost.Resolve().Start(); var mqService = appHost.Resolve(); //Register ServiceStack APIs you want to be able to invoke via MQ mqService.RegisterHandler(appHost.ExecuteMessage); + mqService.Start(); }); }