From 8129fd09e3e9e719fbba4dc24d4f3c048aa95594 Mon Sep 17 00:00:00 2001 From: Damir Arh <1292060+damirarh@users.noreply.github.com> Date: Wed, 16 Feb 2022 05:09:47 +0100 Subject: [PATCH] Fix code snippets (#494) Set correct range and source file for embedded code snippets. --- docs/docs/advanced/generic-host.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/advanced/generic-host.md b/docs/docs/advanced/generic-host.md index 613a6731..8c2c7fdd 100644 --- a/docs/docs/advanced/generic-host.md +++ b/docs/docs/advanced/generic-host.md @@ -30,13 +30,13 @@ Generic host integration allows you to use the most current DI configuration app Then you can configure your features: -[!code-csharp[Program](../../samples/dependency-injection/generic-host/Program.cs?range=27-34)] +[!code-csharp[Program](../../samples/dependency-injection/generic-host/Program.cs?range=27-35)] And finally, run your program: -[!code-csharp[Program](../../samples/dependency-injection/generic-host/Program.cs?range=35-35)] +[!code-csharp[Program](../../samples/dependency-injection/generic-host/Program.cs?range=36-36)] Below is the full source code for the generic host services example. Notice that instance of `IGreeter` will be injected into the `Program` constructor thanks to the dependency injection. -[!code-csharp[Program](../../samples/dependency-injection/custom/Program.cs?highlight=32)] +[!code-csharp[Program](../../samples/dependency-injection/generic-host/Program.cs?highlight=42)]