Skip to content

Commit ab15d88

Browse files
author
Nikolay Pianikov
committed
Update README
1 parent 5a12828 commit ab15d88

41 files changed

Lines changed: 44 additions & 307 deletions

Some content is hidden

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

readme/async-root.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ The following partial class will be generated:
6767
```c#
6868
partial class Composition
6969
{
70-
#if NET9_0_OR_GREATER
71-
private readonly Lock _lock = new Lock();
72-
#else
73-
private readonly Object _lock = new Object();
74-
#endif
75-
7670
[MethodImpl(MethodImplOptions.AggressiveInlining)]
7771
public Task<IBackupService> GetBackupServiceAsync(CancellationToken cancellationToken)
7872
{

readme/build-up-of-an-existing-generic-object.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,6 @@ The following partial class will be generated:
9696
```c#
9797
partial class Composition
9898
{
99-
#if NET9_0_OR_GREATER
100-
private readonly Lock _lock = new Lock();
101-
#else
102-
private readonly Object _lock = new Object();
103-
#endif
104-
10599
[MethodImpl(MethodImplOptions.AggressiveInlining)]
106100
public IFacade<Guid> GetFacade(string userName)
107101
{

readme/build-up-of-an-existing-object.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,6 @@ The following partial class will be generated:
8989
```c#
9090
partial class Composition
9191
{
92-
#if NET9_0_OR_GREATER
93-
private readonly Lock _lock = new Lock();
94-
#else
95-
private readonly Object _lock = new Object();
96-
#endif
97-
9892
[MethodImpl(MethodImplOptions.AggressiveInlining)]
9993
public IGreeter GetGreeter(string name)
10094
{

readme/builder-with-arguments.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ The following partial class will be generated:
9191
```c#
9292
partial class Composition
9393
{
94-
#if NET9_0_OR_GREATER
95-
private readonly Lock _lock = new Lock();
96-
#else
97-
private readonly Object _lock = new Object();
98-
#endif
99-
10094
[MethodImpl(MethodImplOptions.AggressiveInlining)]
10195
public Satellite Initialize(Satellite buildingInstance, Guid id)
10296
{

readme/builder.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@ The following partial class will be generated:
9393
```c#
9494
partial class Composition
9595
{
96-
#if NET9_0_OR_GREATER
97-
private readonly Lock _lock = new Lock();
98-
#else
99-
private readonly Object _lock = new Object();
100-
#endif
101-
10296
[MethodImpl(MethodImplOptions.AggressiveInlining)]
10397
public Player Equip(Player buildingInstance)
10498
{

readme/builders-with-a-name-template.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ The following partial class will be generated:
9999
```c#
100100
partial class Composition
101101
{
102-
#if NET9_0_OR_GREATER
103-
private readonly Lock _lock = new Lock();
104-
#else
105-
private readonly Object _lock = new Object();
106-
#endif
107-
108102
[MethodImpl(MethodImplOptions.AggressiveInlining)]
109103
public Webcam InstallWebcam(Webcam buildingInstance)
110104
{

readme/builders.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ The following partial class will be generated:
115115
```c#
116116
partial class Composition
117117
{
118-
#if NET9_0_OR_GREATER
119-
private readonly Lock _lock = new Lock();
120-
#else
121-
private readonly Object _lock = new Object();
122-
#endif
123-
124118
[MethodImpl(MethodImplOptions.AggressiveInlining)]
125119
public CleanerBot BuildUp(CleanerBot buildingInstance)
126120
{

readme/check-for-a-root.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ Class diagram:
311311
classDiagram
312312
SqlUserRepository --|> IUserRepository : "Primary"
313313
UserService --|> IUserService
314-
Composition ..> LightweightRoot : LightweightRoot LightRoot133d
314+
Composition ..> LightweightRoot : LightweightRoot LightRoot
315315
Composition ..> UserService : IUserService Root
316-
Composition ..> SqlUserRepository : IUserRepository Root133d1
316+
Composition ..> SqlUserRepository : IUserRepository Root1
317317
UserService *-- SqlUserRepository : "Primary" IUserRepository
318318
LightweightRoot o-- "PerBlock" FuncᐸIUserRepositoryᐳ : "Primary" FuncᐸIUserRepositoryᐳ
319319
FuncᐸIUserRepositoryᐳ *-- SqlUserRepository : "Primary" IUserRepository
@@ -327,9 +327,9 @@ classDiagram
327327
namespace Pure.DI.UsageTests.Hints.CheckForRootScenario {
328328
class Composition {
329329
<<partial>>
330-
-LightweightRoot LightRoot133d
330+
-LightweightRoot LightRoot
331331
+IUserService Root
332-
-IUserRepository Root133d1
332+
-IUserRepository Root1
333333
+ T ResolveᐸTᐳ()
334334
+ T ResolveᐸTᐳ(object? tag)
335335
+ object Resolve(Type type)

readme/complex-generic-root-arguments.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@ The following partial class will be generated:
8888
```c#
8989
partial class Composition
9090
{
91-
#if NET9_0_OR_GREATER
92-
private readonly Lock _lock = new Lock();
93-
#else
94-
private readonly Object _lock = new Object();
95-
#endif
96-
9791
[MethodImpl(MethodImplOptions.AggressiveInlining)]
9892
public ISource<T> GetSource<T>(SourceConfig<T> config)
9993
{

readme/composition-arguments.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ The following partial class will be generated:
113113
```c#
114114
partial class Composition
115115
{
116-
#if NET9_0_OR_GREATER
117-
private readonly Lock _lock;
118-
#else
119-
private readonly Object _lock;
120-
#endif
121-
122116
private readonly int _argTimeoutSeconds;
123117
private readonly string _argAuthToken;
124118
private readonly string _argGatewayUrl;
@@ -129,11 +123,6 @@ partial class Composition
129123
_argTimeoutSeconds = timeoutSeconds;
130124
_argAuthToken = authToken ?? throw new ArgumentNullException(nameof(authToken));
131125
_argGatewayUrl = gatewayUrl ?? throw new ArgumentNullException(nameof(gatewayUrl));
132-
#if NET9_0_OR_GREATER
133-
_lock = new Lock();
134-
#else
135-
_lock = new Object();
136-
#endif
137126
}
138127

139128
public IPaymentProcessor PaymentService

0 commit comments

Comments
 (0)