Skip to content

Commit 82c6b5f

Browse files
Update documentation
1 parent d625364 commit 82c6b5f

File tree

139 files changed

+27
-1820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+27
-1820
lines changed

tests/Pure.DI.UsageTests/Advanced/AccumulatorScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33
$p=8
44
$d=Accumulators
55
$h=Accumulators allow you to accumulate instances of certain types and lifetimes.
6-
$h=When this occurs: you need this feature while building the composition and calling roots.
7-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
8-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
9-
$f=
10-
$f=What it shows:
11-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
12-
$f=
13-
$f=Important points:
14-
$f=- Highlights the key configuration choices and their effect on resolution.
15-
$f=
16-
$f=Useful when:
17-
$f=- You want a concrete template for applying this feature in a composition.
18-
$f=
196
$r=Shouldly
207
*/
218

tests/Pure.DI.UsageTests/Advanced/CompositionRootKindsScenario.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
/*
1+
/*
22
$v=true
33
$p=1
44
$d=Composition root kinds
5-
$h=When this occurs: you need this feature while building the composition and calling roots.
6-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
7-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
8-
$f=
9-
$f=What it shows:
10-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
11-
$f=
12-
$f=Important points:
13-
$f=- Highlights the key configuration choices and their effect on resolution.
14-
$f=
15-
$f=Useful when:
16-
$f=- You want a concrete template for applying this feature in a composition.
17-
$f=
185
*/
196

207
// ReSharper disable ClassNeverInstantiated.Local

tests/Pure.DI.UsageTests/Advanced/ConsumerTypesScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33
$p=19
44
$d=Consumer types
55
$h=`ConsumerTypes` is used to get the list of consumer types of a given dependency. It contains an array of types and guarantees that it will contain at least one element. The use of `ConsumerTypes` is demonstrated on the example of [Serilog library](https://serilog.net/):
6-
$h=When this occurs: you need this feature while building the composition and calling roots.
7-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
8-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
9-
$f=
10-
$f=What it shows:
11-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
12-
$f=
13-
$f=Important points:
14-
$f=- Highlights the key configuration choices and their effect on resolution.
15-
$f=
16-
$f=Useful when:
17-
$f=- You want a concrete template for applying this feature in a composition.
18-
$f=
196
$r=Shouldly;Serilog.Core;Serilog.Events
207
*/
218

tests/Pure.DI.UsageTests/Advanced/DependentCompositionsScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
$h=- _CompositionKind.Public_ - will create a normal composition class, this is the default setting and can be omitted, it can also use the _DependsOn_ method to use it as a dependency in other compositions
77
$h=- _CompositionKind.Internal_ - the composition class will not be created, but that composition can be used to create other compositions by calling the _DependsOn_ method with its name
88
$h=- _CompositionKind.Global_ - the composition class will also not be created, but that composition will automatically be used to create other compositions
9-
$h=When this occurs: you need this feature while building the composition and calling roots.
10-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
11-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
12-
$f=
13-
$f=What it shows:
14-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
15-
$f=
16-
$f=Important points:
17-
$f=- Highlights the key configuration choices and their effect on resolution.
18-
$f=
19-
$f=Useful when:
20-
$f=- You want a concrete template for applying this feature in a composition.
21-
$f=
229
*/
2310

2411
// ReSharper disable ClassNeverInstantiated.Local

tests/Pure.DI.UsageTests/Advanced/ExposedGenericRootsScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,8 @@
1515
$h= .Root<IMyGenericService<TT>>("GetMyService", kind: RootKinds.Exposed);
1616
$h=}
1717
$h=```
18-
$h=When this occurs: you need this feature while building the composition and calling roots.
19-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
20-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
21-
$f=
2218
$f=> [!IMPORTANT]
2319
$f=> At this point, a composition from another assembly or another project can be used for this purpose. Compositions from the current project cannot be used in this way due to limitations of the source code generators.
24-
$f=What it shows:
25-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
26-
$f=
27-
$f=Important points:
28-
$f=- Highlights the key configuration choices and their effect on resolution.
29-
$f=
30-
$f=Useful when:
31-
$f=- You want a concrete template for applying this feature in a composition.
32-
$f=
3320
*/
3421

3522
// ReSharper disable ClassNeverInstantiated.Local

tests/Pure.DI.UsageTests/Advanced/ExposedGenericRootsWithArgsScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515
$h= .Root<IMyGenericService<TT>>("GetMyService", kind: RootKinds.Exposed);
1616
$h=}
1717
$h=```
18-
$h=When this occurs: you need this feature while building the composition and calling roots.
19-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
20-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
21-
$f=
22-
$f=What it shows:
23-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
24-
$f=
25-
$f=Important points:
26-
$f=- Highlights the key configuration choices and their effect on resolution.
27-
$f=
28-
$f=Useful when:
29-
$f=- You want a concrete template for applying this feature in a composition.
30-
$f=
3118
*/
3219

3320
// ReSharper disable ClassNeverInstantiated.Local

tests/Pure.DI.UsageTests/Advanced/ExposedRootWithTagScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@
1313
$h= .Root<IMyService>("MyService", "Some tag", RootKinds.Exposed);
1414
$h=}
1515
$h=```
16-
$h=When this occurs: you need this feature while building the composition and calling roots.
17-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
18-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
19-
$f=
20-
$f=What it shows:
21-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
22-
$f=
23-
$f=Important points:
24-
$f=- Highlights the key configuration choices and their effect on resolution.
25-
$f=
26-
$f=Useful when:
27-
$f=- You want a concrete template for applying this feature in a composition.
28-
$f=
2916
*/
3017

3118
// ReSharper disable ClassNeverInstantiated.Local

tests/Pure.DI.UsageTests/Advanced/ExposedRootsScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,8 @@
1313
$h= .Root<IMyService>("MyService", kind: RootKinds.Exposed);
1414
$h=}
1515
$h=```
16-
$h=When this occurs: you need this feature while building the composition and calling roots.
17-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
18-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
19-
$f=
2016
$f=> [!IMPORTANT]
2117
$f=> At this point, a composition from another assembly or another project can be used for this purpose. Compositions from the current project cannot be used in this way due to limitations of the source code generators.
22-
$f=What it shows:
23-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
24-
$f=
25-
$f=Important points:
26-
$f=- Highlights the key configuration choices and their effect on resolution.
27-
$f=
28-
$f=Useful when:
29-
$f=- You want a concrete template for applying this feature in a composition.
30-
$f=
3118
*/
3219

3320
// ReSharper disable ClassNeverInstantiated.Local

tests/Pure.DI.UsageTests/Advanced/ExposedRootsViaArgScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@
1313
$h= .Root<IMyService>("MyService", kind: RootKinds.Exposed);
1414
$h=}
1515
$h=```
16-
$h=When this occurs: you need this feature while building the composition and calling roots.
17-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
18-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
19-
$f=
20-
$f=What it shows:
21-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
22-
$f=
23-
$f=Important points:
24-
$f=- Highlights the key configuration choices and their effect on resolution.
25-
$f=
26-
$f=Useful when:
27-
$f=- You want a concrete template for applying this feature in a composition.
28-
$f=
2916
*/
3017

3118
// ReSharper disable ClassNeverInstantiated.Local

tests/Pure.DI.UsageTests/Advanced/ExposedRootsViaRootArgScenario.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@
1313
$h= .Root<IMyService>("MyService", kind: RootKinds.Exposed);
1414
$h=}
1515
$h=```
16-
$h=When this occurs: you need this feature while building the composition and calling roots.
17-
$h=What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
18-
$h=How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
19-
$f=
20-
$f=What it shows:
21-
$f=- Demonstrates the scenario setup and resulting object graph in Pure.DI.
22-
$f=
23-
$f=Important points:
24-
$f=- Highlights the key configuration choices and their effect on resolution.
25-
$f=
26-
$f=Useful when:
27-
$f=- You want a concrete template for applying this feature in a composition.
28-
$f=
2916
*/
3017

3118
// ReSharper disable ClassNeverInstantiated.Local

0 commit comments

Comments
 (0)