Skip to content

Commit 7ea96ee

Browse files
committed
giving the Use its own header in docs
1 parent a4c090e commit 7ea96ee

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/DryIoc.Docs/RegisterResolve.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@ class B
873873
Ok, now we have a pre-created instance in the registry, but what if I need a different instances when opening a new scope.
874874
Say I want to put `RequestMessage` object into ASP request scope. A request message has a different value in different requests.
875875
876+
### Method Use to add instance directly into scope
877+
876878
In that case you we can use method `Use` to put instance directly into the current scope skipping the registration ceremony.
877879
878880
__Caution:__ the instance put via `Use` does not support `serviceKey`, [Wrappers](Wrappers), and [Decorators](Decorators),

docs/DryIoc.Docs/RegisterResolve.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,8 @@ class Register_instance_example
870870
Ok, now we have a pre-created instance in the registry, but what if I need a different instances when opening a new scope.
871871
Say I want to put `RequestMessage` object into ASP request scope. A request message has a different value in different requests.
872872

873+
### Method Use to add instance directly into scope
874+
873875
In that case you we can use method `Use` to put instance directly into the current scope skipping the registration ceremony.
874876

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

0 commit comments

Comments
 (0)