From e134e7fd15de0a11d610bc783a6e2bc7e3eeeb4f Mon Sep 17 00:00:00 2001 From: Gunnar von der Beck Date: Thu, 14 Mar 2024 16:37:51 +0100 Subject: [PATCH] docs(csharp-connector): minor update of README.md --- connector-csharp/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connector-csharp/README.md b/connector-csharp/README.md index f801520..412e12a 100644 --- a/connector-csharp/README.md +++ b/connector-csharp/README.md @@ -63,7 +63,8 @@ Lastly, it is also possible to use environment variables: ``` ConfigureServices((hostContext, services) => { services.AddZeebeRedis() - .AddSingleton(); + .AddSingleton() + .AddHostedService(p => p.GetRequiredService()); }) ```