From c975af1949972222417b82c3fad6f61b746daf6b Mon Sep 17 00:00:00 2001 From: Fabian Date: Wed, 17 Nov 2021 20:12:14 +0100 Subject: [PATCH] fix snippet language in dependency-injection (#23965) --- aspnetcore/fundamentals/dependency-injection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/dependency-injection.md b/aspnetcore/fundamentals/dependency-injection.md index 2b5ab92ebc..0c45cbb258 100644 --- a/aspnetcore/fundamentals/dependency-injection.md +++ b/aspnetcore/fundamentals/dependency-injection.md @@ -197,7 +197,7 @@ To reduce the logging output, set "Logging:LogLevel:Microsoft:Error" in the *app The following code shows how to resolve a scoped service for a limited duration when the app starts: -[!code-json[](dependency-injection/samples/6.x/WebApp1/Program.cs?highlight=3,7-13)] +[!code-csharp[](dependency-injection/samples/6.x/WebApp1/Program.cs?highlight=3,7-13)] ## Scope validation