Skip to content

Commit

Permalink
Added link to lifetime scope registration example
Browse files Browse the repository at this point in the history
  • Loading branch information
tillig committed Jul 22, 2016
1 parent c5f0fb7 commit 65e79e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/best-practices/index.rst
Expand Up @@ -92,3 +92,5 @@ If you modify a container after being built, you run several risks, especially i
- Component registrations that subscribe to lifetime events may be subscribed to the wrong events after the update - events don't all get re-initialized during update.

If there's absolutely no way around it, you very well may need to ``Update()`` a container, but really try to avoid it if possible.

**Instead of updating the container, consider registering updates or changes in a child lifetime scope.** :doc:`There are examples of this in the lifetime scope documentation. <../lifetime/working-with-scopes>`

0 comments on commit 65e79e5

Please sign in to comment.