fix snippet language in dependency-injection (#23965)
parent
d1a5acb026
commit
c975af1949
|
@ -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:
|
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
|
## Scope validation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue