Skip to content

Commit 02624e4

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

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. In a server-side Blazor app, 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. 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).
312312

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

0 commit comments

Comments
 (0)