Skip to content

Commit 4a58ef3

Browse files
authored
Update aspnetcore/blazor/security/server/index.md
1 parent 02624e4 commit 4a58ef3

File tree

1 file changed

+1
-1
lines changed
  • aspnetcore/blazor/security/server

1 file changed

+1
-1
lines changed

aspnetcore/blazor/security/server/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public class ExampleService
308308
}
309309
```
310310

311-
In the `Program` file, the `ExampleService` is registered as a scoped service. When services aren't scoped to a component with <xref:Microsoft.AspNetCore.Components.OwningComponentBase>, scoped services have a lifetime equal to the duration of the client connection [circuit](xref:blazor/hosting-models#blazor-server).
311+
In the `Program` file, the `ExampleService` is registered as a scoped service. In this example, the service is scoped to a component with <xref:Microsoft.AspNetCore.Components.OwningComponentBase>. For general guidance on the lifetime of scoped services, see <xref:fundamentals/dependency-injection>.
312312

313313
```csharp
314314
.AddScoped<ExampleService>();

0 commit comments

Comments
 (0)