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()); }) ```