From 4ce10b22c20c79cda632fe23cbcad57eddf9c2b2 Mon Sep 17 00:00:00 2001 From: Luiz Carlos Faria Date: Mon, 3 Jun 2024 19:00:45 -0300 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c69e780..e0dca51 100644 --- a/README.md +++ b/README.md @@ -70,12 +70,12 @@ builder.Services.MapQueue(config => con ``` -#### Scoped and Keyed Services, Same Type, Multiple Consumers +#### Scoped and Keyed Services, Same Type, Multiple Consumers, Using NewtonsoftAMQPSerializer ```cs builder.Services.AddKeyedScoped("key-of-service-1"); builder.Services.AddKeyedScoped("key-of-service-2", (sp, key) => new BusinessService(... custom dependencies ...)); -builder.Services.AddSingleton(); +builder.Services.AddSingleton(); builder.Services.MapQueue(config => config .WithDispatchInChildScope()