Skip to content

Commit 28b0f09

Browse files
Update documentation
1 parent 82c6b5f commit 28b0f09

File tree

143 files changed

+13
-4292
lines changed

Some content is hidden

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

143 files changed

+13
-4292
lines changed

AGENTS.md

Lines changed: 2 additions & 1694 deletions
Large diffs are not rendered by default.

AGENTS_MEDIUM.md

Lines changed: 1 addition & 571 deletions
Large diffs are not rendered by default.

AGENTS_SMALL.md

Lines changed: 1 addition & 251 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,9 +1994,9 @@ AI needs to understand the situation it’s in (context). This means knowing det
19941994

19951995
| AI context file | Size | Tokens |
19961996
| --------------- | ---- | ------ |
1997-
| [AGENTS_SMALL.md](AGENTS_SMALL.md) | 63KB | 16K |
1998-
| [AGENTS_MEDIUM.md](AGENTS_MEDIUM.md) | 124KB | 31K |
1999-
| [AGENTS.md](AGENTS.md) | 426KB | 109K |
1997+
| [AGENTS_SMALL.md](AGENTS_SMALL.md) | 51KB | 13K |
1998+
| [AGENTS_MEDIUM.md](AGENTS_MEDIUM.md) | 97KB | 25K |
1999+
| [AGENTS.md](AGENTS.md) | 347KB | 88K |
20002000

20012001
For different IDEs, you can use the _AGENTS.md_ file as is by simply copying it to the root directory. For use with _JetBrains Rider_ and _Junie_, please refer to [these instructions](https://www.jetbrains.com/help/junie/customize-guidelines.html). For example, you can copy any _AGENTS.md_ file into your project (using _Pure.DI_) as _.junie/guidelines.md._
20022002
## How to contribute to Pure.DI

readme/a-few-partial-classes.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#### A few partial classes
22

33
The setting code for one Composition can be located in several methods and/or in several partial classes.
4-
When this occurs: you need this feature while building the composition and calling roots.
5-
What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
6-
How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
74

85

96
```c#
@@ -76,16 +73,6 @@ dotnet run
7673

7774
</details>
7875

79-
What it shows:
80-
- Demonstrates the scenario setup and resulting object graph in Pure.DI.
81-
82-
Important points:
83-
- Highlights the key configuration choices and their effect on resolution.
84-
85-
Useful when:
86-
- You want a concrete template for applying this feature in a composition.
87-
88-
8976
The following partial class will be generated:
9077

9178
```c#

readme/accumulators.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#### Accumulators
22

33
Accumulators allow you to accumulate instances of certain types and lifetimes.
4-
When this occurs: you need this feature while building the composition and calling roots.
5-
What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
6-
How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
74

85

96
```c#
@@ -89,16 +86,6 @@ dotnet run
8986

9087
</details>
9188

92-
What it shows:
93-
- Demonstrates the scenario setup and resulting object graph in Pure.DI.
94-
95-
Important points:
96-
- Highlights the key configuration choices and their effect on resolution.
97-
98-
Useful when:
99-
- You want a concrete template for applying this feature in a composition.
100-
101-
10289
The following partial class will be generated:
10390

10491
```c#

readme/advanced-interception.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#### Advanced interception
22

33
This approach of interception maximizes performance by precompiling the proxy object factory.
4-
When this occurs: you need this feature while building the composition and calling roots.
5-
What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
6-
How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
74

85

96
```c#
@@ -150,16 +147,6 @@ dotnet run
150147

151148
</details>
152149

153-
What it shows:
154-
- Demonstrates the scenario setup and resulting object graph in Pure.DI.
155-
156-
Important points:
157-
- Highlights the key configuration choices and their effect on resolution.
158-
159-
Useful when:
160-
- You want a concrete template for applying this feature in a composition.
161-
162-
163150
The following partial class will be generated:
164151

165152
```c#

readme/array.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#### Array
22

33
Specifying `T[]` as the injection type allows instances from all bindings that implement the `T` type to be injected.
4-
When this occurs: you need this feature while building the composition and calling roots.
5-
What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
6-
How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
74

85

96
```c#
@@ -96,15 +93,6 @@ In addition to arrays, other collection types are also supported, such as:
9693
- System.Collections.Immutable.ImmutableQueue<T>
9794
- System.Collections.Immutable.IImmutableStack<T>
9895
And of course this list can easily be supplemented on its own.
99-
What it shows:
100-
- Demonstrates the scenario setup and resulting object graph in Pure.DI.
101-
102-
Important points:
103-
- Highlights the key configuration choices and their effect on resolution.
104-
105-
Useful when:
106-
- You want a concrete template for applying this feature in a composition.
107-
10896

10997
The following partial class will be generated:
11098

readme/async-disposable-scope.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#### Async disposable scope
22

3-
When this occurs: you need this feature while building the composition and calling roots.
4-
What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
5-
How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
6-
73

84
```c#
95
using Shouldly;
@@ -115,16 +111,6 @@ dotnet run
115111

116112
</details>
117113

118-
What it shows:
119-
- Demonstrates the scenario setup and resulting object graph in Pure.DI.
120-
121-
Important points:
122-
- Highlights the key configuration choices and their effect on resolution.
123-
124-
Useful when:
125-
- You want a concrete template for applying this feature in a composition.
126-
127-
128114
The following partial class will be generated:
129115

130116
```c#

readme/async-disposable-singleton.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#### Async disposable singleton
22

33
If at least one of these objects implements the `IAsyncDisposable` interface, then the composition implements `IAsyncDisposable` as well. To dispose of all created singleton instances in an asynchronous manner, simply dispose of the composition instance in an asynchronous manner:
4-
When this occurs: you need this feature while building the composition and calling roots.
5-
What it solves: provides a clear setup pattern and expected behavior without extra boilerplate or manual wiring.
6-
How it is solved in the example: shows the minimal DI configuration and how the result is used in code.
74

85

96
```c#
@@ -105,16 +102,6 @@ dotnet run
105102

106103
</details>
107104

108-
What it shows:
109-
- Demonstrates the scenario setup and resulting object graph in Pure.DI.
110-
111-
Important points:
112-
- Highlights the key configuration choices and their effect on resolution.
113-
114-
Useful when:
115-
- You want a concrete template for applying this feature in a composition.
116-
117-
118105
The following partial class will be generated:
119106

120107
```c#

0 commit comments

Comments
 (0)