Skip to content

Commit

Permalink
giving the Use its own header in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dadhi committed Jun 18, 2021
1 parent a4c090e commit 7ea96ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/DryIoc.Docs/RegisterResolve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,8 @@ class B
Ok, now we have a pre-created instance in the registry, but what if I need a different instances when opening a new scope.
Say I want to put `RequestMessage` object into ASP request scope. A request message has a different value in different requests.
### Method Use to add instance directly into scope
In that case you we can use method `Use` to put instance directly into the current scope skipping the registration ceremony.
__Caution:__ the instance put via `Use` does not support `serviceKey`, [Wrappers](Wrappers), and [Decorators](Decorators),
Expand Down
2 changes: 2 additions & 0 deletions docs/DryIoc.Docs/RegisterResolve.md
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,8 @@ class Register_instance_example
Ok, now we have a pre-created instance in the registry, but what if I need a different instances when opening a new scope.
Say I want to put `RequestMessage` object into ASP request scope. A request message has a different value in different requests.

### Method Use to add instance directly into scope

In that case you we can use method `Use` to put instance directly into the current scope skipping the registration ceremony.

__Caution:__ the instance put via `Use` does not support `serviceKey`, [Wrappers](Wrappers), and [Decorators](Decorators),
Expand Down

0 comments on commit 7ea96ee

Please sign in to comment.