Skip to content

Commit

Permalink
Updating internal Pure.DI to 2.1.39
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Nov 20, 2024
1 parent b6f1c2c commit a713af6
Show file tree
Hide file tree
Showing 21 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<InternalVersion>2.1.38</InternalVersion>
<InternalVersion>2.1.39</InternalVersion>
<BasePackageId>Pure.DI</BasePackageId>
<LangVersion>latest</LangVersion>
<BaseTargetFramework>net8.0</BaseTargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion readme/Avalonia.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ The [project file](/samples/AvaloniaApp/AvaloniaApp.csproj) looks like this:
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions readme/BlazorServerApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ The [project file](/samples/BlazorServerApp/BlazorServerApp.csproj) looks like t
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.36" />
<PackageReference Include="Pure.DI.MS" Version="2.1.39" />
</ItemGroup>

</Project>
Expand Down
4 changes: 2 additions & 2 deletions readme/BlazorWebAssemblyApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ The [project file](/samples/BlazorWebAssemblyApp/BlazorWebAssemblyApp.csproj) lo
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.36" />
<PackageReference Include="Pure.DI.MS" Version="2.1.39" />
</ItemGroup>

</Project>
Expand Down
2 changes: 1 addition & 1 deletion readme/Console.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The [project file](/samples/ShroedingersCat/ShroedingersCat.csproj) looks like t
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion readme/ConsoleNativeAOT.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The [project file](/samples/ShroedingersCatNativeAOT/ShroedingersCatNativeAOT.cs
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion readme/ConsoleTopLevelStatements.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The [project file](/samples/ShroedingersCatTopLevelStatements/ShroedingersCatTop
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions readme/GrpcService.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ The [project file](/samples/GrpcService/GrpcService.csproj) looks like this:
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.36" />
<PackageReference Include="Pure.DI.MS" Version="2.1.39" />
</ItemGroup>

</Project>
Expand Down
4 changes: 2 additions & 2 deletions readme/Maui.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ The [project file](/samples/MAUIApp/MAUIApp.csproj) looks like this:
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)"/>
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)"/>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0"/>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.36" />
<PackageReference Include="Pure.DI.MS" Version="2.1.39" />
</ItemGroup>

</Project>
Expand Down
4 changes: 2 additions & 2 deletions readme/MinimalWebAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ The [project file](/samples/WebAPI/WebAPI.csproj) looks like this:
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.36" />
<PackageReference Include="Pure.DI.MS" Version="2.1.39" />
</ItemGroup>

</Project>
Expand Down
4 changes: 2 additions & 2 deletions readme/WebAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ The [project file](/samples/WebAPI/WebAPI.csproj) looks like this:
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.36" />
<PackageReference Include="Pure.DI.MS" Version="2.1.39" />
</ItemGroup>

</Project>
Expand Down
4 changes: 2 additions & 2 deletions readme/WebApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ The [project file](/samples/WebApp/WebApp.csproj) looks like this:
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pure.DI.MS" Version="2.1.36" />
<PackageReference Include="Pure.DI.MS" Version="2.1.39" />
</ItemGroup>

</Project>
Expand Down
2 changes: 1 addition & 1 deletion readme/WinFormsApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The [project file](/samples/WinFormsApp/WinFormsApp.csproj) looks like this:
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

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

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

<ItemGroup>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PackageReference Include="Pure.DI" Version="2.1.39">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
10 changes: 5 additions & 5 deletions readme/threadsafe-hint.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Service(Func<IDependency> dependencyFactory) : IService;
DI.Setup(nameof(Composition))
.Hint(ThreadSafe, "Off")
.Bind().To<Dependency>()
.Bind().As(Lifetime.Scoped).To<Service>()
.Bind().As(Lifetime.Singleton).To<Service>()
.Root<IService>("Root");

var composition = new Composition();
Expand All @@ -36,7 +36,7 @@ partial class Composition
{
private readonly Composition _root;

private Service? _scopedService40;
private Service? _singletonService40;

[OrdinalAttribute(20)]
public Composition()
Expand All @@ -54,17 +54,17 @@ partial class Composition
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
if (_scopedService40 == null)
if (_root._singletonService40 == null)
{
Func<IDependency> perBlockFunc0 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
IDependency localValue71 = new Dependency();
return localValue71;
});
_scopedService40 = new Service(perBlockFunc0);
_root._singletonService40 = new Service(perBlockFunc0);
}

return _scopedService40!;
return _root._singletonService40!;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Pure.DI.Core/Components/Api.g.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// <auto-generated/>
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V1
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V2
#pragma warning disable

#if !PUREDI_API_FUNC_SUPPRESSION
Expand Down
2 changes: 1 addition & 1 deletion src/Pure.DI.Core/Components/GenericTypeArguments.g.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// <auto-generated/>
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V1
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V2
#pragma warning disable
namespace Pure.DI
{
Expand Down
2 changes: 1 addition & 1 deletion src/Pure.DI.Core/Features/Default.g.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// <auto-generated/>
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V1
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V2
#pragma warning disable

namespace Pure.DI
Expand Down
2 changes: 1 addition & 1 deletion src/Pure.DI.Core/Pure.DI.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>$(BasePackageId)</RootNamespace>
<DefineConstants>$(DefineConstants);PUREDI_API_SUPPRESSION;PUREDI_API_V1</DefineConstants>
<DefineConstants>$(DefineConstants);PUREDI_API_SUPPRESSION;PUREDI_API_V2</DefineConstants>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/Pure.DI.UsageTests/Hints/ThreadSafeHintScenario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void Run()
DI.Setup(nameof(Composition))
.Hint(ThreadSafe, "Off")
.Bind().To<Dependency>()
.Bind().As(Lifetime.Scoped).To<Service>()
.Bind().As(Lifetime.Singleton).To<Service>()
.Root<IService>("Root");

var composition = new Composition();
Expand Down

0 comments on commit a713af6

Please sign in to comment.