Skip to content

Commit

Permalink
Merge pull request #125 from Bouke/patch-8
Browse files Browse the repository at this point in the history
Make users aware of OnePerNestedScope requirement
  • Loading branch information
dotnetjunkie authored Dec 3, 2021
2 parents 922eb4f + d9f423c commit d16f848
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/blazorintegration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ To integrate Simple Injector with Blazor, please follow the following steps:
services.AddSimpleInjector(container, options =>
{
// If you plan on adding AspNetCore as well, change the ServiceScopeReuseBehavior to OnePerNestedScope.
// options.AddAspNetCore(ServiceScopeReuseBehavior.OnePerNestedScope);
options.AddServerSideBlazor(this.GetType().Assembly);
});
Expand Down

0 comments on commit d16f848

Please sign in to comment.