Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed May 17, 2024
1 parent b0ee298 commit 7921621
Show file tree
Hide file tree
Showing 18 changed files with 216 additions and 116 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -905,17 +905,17 @@ Thank you for your interest in contributing to the _Pure.DI_ project! First of a

This project uses the "build as code" approach using [csharp-interactive](https://github.com/DevTeam/csharp-interactive). The entire build logic is a regular [console .NET application](/build). You can use the [build.cmd](/build.cmd) and [build.sh](/build.sh) files with the appropriate command in the parameters to perform all basic actions on the project, e.g:

| Command | Description |
|----------------|-------------------------------|
| g, generator | Builds and tests generator |
| l, libs | Builds and tests libraries |
| c, check | Compatibility checks |
| p, pack | Creates NuGet packages |
| r, readme | Generates README.md |
| benchmarks, bm | Runs benchmarks |
| deploy, dp | Deploys packages |
| t, template | Creates and deploys templates |
| u, update | Updates internal DI version |
| Command | Description |
|----------------|-------------------------------------------------------------------|
| g, generator | Builds and tests generator |
| l, libs | Builds and tests libraries |
| c, check | Compatibility checks |
| p, pack | Creates NuGet packages |
| r, readme | Generates README.md |
| benchmarks, bm | Runs benchmarks |
| deploy, dp | Deploys packages |
| t, template | Creates and deploys templates |
| u, upgrade | Upgrading the internal version of DI to the latest public version |

For example:

Expand Down
2 changes: 1 addition & 1 deletion readme/BlazorServerApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The [project file](/samples/BlazorServerApp/BlazorServerApp.csproj) looks like t
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.6" />
<PackageReference Include="Pure.DI.MS" Version="2.1.18" />
</ItemGroup>

</Project>
Expand Down
2 changes: 1 addition & 1 deletion readme/BlazorWebAssemblyApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The [project file](/samples/BlazorWebAssemblyApp/BlazorWebAssemblyApp.csproj) lo
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.6" />
<PackageReference Include="Pure.DI.MS" Version="2.1.18" />
</ItemGroup>

</Project>
Expand Down
2 changes: 1 addition & 1 deletion readme/GrpcService.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The [project file](/samples/GrpcService/GrpcService.csproj) looks like this:
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.6" />
<PackageReference Include="Pure.DI.MS" Version="2.1.18" />
</ItemGroup>

</Project>
Expand Down
2 changes: 1 addition & 1 deletion readme/Maui.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ The [project file](/samples/MAUIApp/MAUIApp.csproj) looks like this:
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.6" />
<PackageReference Include="Pure.DI.MS" Version="2.1.18" />
</ItemGroup>

</Project>
Expand Down
2 changes: 1 addition & 1 deletion readme/MinimalWebAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The [project file](/samples/WebAPI/WebAPI.csproj) looks like this:
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.6" />
<PackageReference Include="Pure.DI.MS" Version="2.1.18" />
</ItemGroup>

</Project>
Expand Down
2 changes: 1 addition & 1 deletion readme/WebAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The [project file](/samples/WebAPI/WebAPI.csproj) looks like this:
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.6" />
<PackageReference Include="Pure.DI.MS" Version="2.1.18" />
</ItemGroup>

</Project>
Expand Down
2 changes: 1 addition & 1 deletion readme/WebApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The [project file](/samples/WebApp/WebApp.csproj) looks like this:
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.6" />
<PackageReference Include="Pure.DI.MS" Version="2.1.18" />
</ItemGroup>

</Project>
Expand Down
24 changes: 17 additions & 7 deletions readme/async-disposable-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,24 @@ partial class Composition: IDisposable, IAsyncDisposable
get
{
var perResolveFunc43 = default(Func<Session>);
perResolveFunc43 = new Func<Session>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
if (perResolveFunc43 == null)
{
Composition transientComposition2 = this;
var localValue0 = new Session(transientComposition2);
return localValue0;
});
lock (_lock)
{
if (perResolveFunc43 == null)
{
perResolveFunc43 = new Func<Session>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
Composition transientComposition2 = this;
var localValue0 = new Session(transientComposition2);
return localValue0;
});
}
}
}

return new Program(perResolveFunc43!);
}
}
Expand Down
34 changes: 22 additions & 12 deletions readme/auto-scoped.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,22 +112,32 @@ partial class Composition
get
{
var perResolveFunc43 = default(Func<IService>);
perResolveFunc43 = new Func<IService>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
if (perResolveFunc43 == null)
{
Composition transientComposition2 = this;
IService transientIService1;
lock (_lock)
{
var localBaseComposition1 = transientComposition2;
// Creates a session
var localSession2 = new Composition(localBaseComposition1);
transientIService1 = localSession2.SessionRoot;
if (perResolveFunc43 == null)
{
perResolveFunc43 = new Func<IService>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
Composition transientComposition2 = this;
IService transientIService1;
{
var localBaseComposition1 = transientComposition2;
// Creates a session
var localSession2 = new Composition(localBaseComposition1);
transientIService1 = localSession2.SessionRoot;
}

var localValue0 = transientIService1;
return localValue0;
});
}
}
}

var localValue0 = transientIService1;
return localValue0;
});
return new Program(perResolveFunc43!);
}
}
Expand Down
22 changes: 16 additions & 6 deletions readme/func-with-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,23 @@ partial class Composition
get
{
var perResolveFunc39 = default(Func<IDependency>);
perResolveFunc39 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
if (perResolveFunc39 == null)
{
var localValue0 = new Dependency();
return localValue0;
});
lock (_lock)
{
if (perResolveFunc39 == null)
{
perResolveFunc39 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
var localValue0 = new Dependency();
return localValue0;
});
}
}
}

return new Service(perResolveFunc39!);
}
}
Expand Down
22 changes: 16 additions & 6 deletions readme/func.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,23 @@ partial class Composition
get
{
var perResolveFunc39 = default(Func<IDependency>);
perResolveFunc39 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
if (perResolveFunc39 == null)
{
var localValue0 = new Dependency();
return localValue0;
});
lock (_lock)
{
if (perResolveFunc39 == null)
{
perResolveFunc39 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
var localValue0 = new Dependency();
return localValue0;
});
}
}
}

return new Service(perResolveFunc39!);
}
}
Expand Down
22 changes: 16 additions & 6 deletions readme/lazy.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,23 @@ partial class Composition
get
{
var perResolveFunc40 = default(Func<IDependency>);
perResolveFunc40 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
if (perResolveFunc40 == null)
{
var localValue0 = new Dependency();
return localValue0;
});
lock (_lock)
{
if (perResolveFunc40 == null)
{
perResolveFunc40 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
var localValue0 = new Dependency();
return localValue0;
});
}
}
}

Lazy<IDependency> transientLazy1;
{
var localFactory1 = perResolveFunc40!;
Expand Down
22 changes: 16 additions & 6 deletions readme/manually-started-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,23 @@ partial class Composition
public IService GetRoot(CancellationToken cancellationToken)
{
var perResolveFunc42 = default(Func<IDependency>);
perResolveFunc42 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
if (perResolveFunc42 == null)
{
var localValue0 = new Dependency();
return localValue0;
});
lock (_lock)
{
if (perResolveFunc42 == null)
{
perResolveFunc42 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
var localValue0 = new Dependency();
return localValue0;
});
}
}
}

Task<IDependency> transientTask1;
{
var localFactory1 = perResolveFunc42!;
Expand Down
24 changes: 17 additions & 7 deletions readme/scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,24 @@ partial class Composition: IDisposable
get
{
var perResolveFunc43 = default(Func<Session>);
perResolveFunc43 = new Func<Session>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
if (perResolveFunc43 == null)
{
Composition transientComposition2 = this;
var localValue0 = new Session(transientComposition2);
return localValue0;
});
lock (_lock)
{
if (perResolveFunc43 == null)
{
perResolveFunc43 = new Func<Session>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
Composition transientComposition2 = this;
var localValue0 = new Session(transientComposition2);
return localValue0;
});
}
}
}

return new Program(perResolveFunc43!);
}
}
Expand Down
22 changes: 16 additions & 6 deletions readme/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,23 @@ partial class Composition
perBlockTaskFactory2 = new TaskFactory<IDependency>(localCancellationToken0, localTaskCreationOptions1, localTaskContinuationOptions2, localTaskScheduler3);
}

perResolveFunc42 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
if (perResolveFunc42 == null)
{
var localValue4 = new Dependency();
return localValue4;
});
lock (_lock)
{
if (perResolveFunc42 == null)
{
perResolveFunc42 = new Func<IDependency>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
var localValue4 = new Dependency();
return localValue4;
});
}
}
}

Task<IDependency> transientTask1;
{
var localFactory5 = perResolveFunc42!;
Expand Down
Loading

0 comments on commit 7921621

Please sign in to comment.