Skip to content

Commit b38d167

Browse files
Improved object composition
1 parent f6d746a commit b38d167

99 files changed

Lines changed: 2173 additions & 1946 deletions

File tree

Some content is hidden

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

build/Core/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Build.Core;
99
[SuppressMessage("Performance", "CA1822:Mark members as static")]
1010
class Settings(Properties properties, Versions versions)
1111
{
12-
public static readonly VersionRange VersionRange = VersionRange.Parse("2.1.*");
12+
public static readonly VersionRange VersionRange = VersionRange.Parse("2.2.*");
1313

1414
private readonly Lazy<NuGetVersion> _currentVersion = new(() => GetVersion(versions));
1515

src/Pure.DI.Core/Components/Api.g.cs

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -999,32 +999,7 @@ internal enum Hint
999999
/// </example>
10001000
/// </summary>
10011001
/// <seealso cref="IConfiguration.Hint"/>
1002-
Comments,
1003-
1004-
/// <summary>
1005-
/// <c>On</c> or <c>Off</c>. Indicates whether <see cref="System.Threading.Lock"/> should be used whenever possible instead of the classic approach of synchronizing object access using <see cref="System.Threading.Monitor"/>. <c>On</c> by default.
1006-
/// <example>
1007-
/// <code>
1008-
/// // SystemThreadingLock = Off
1009-
/// DI.Setup("Composition")
1010-
/// .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
1011-
/// </code>
1012-
/// <br/>
1013-
/// or using the API call <see cref="IConfiguration.Hint"/>:
1014-
/// <code>
1015-
/// DI.Setup("Composition")
1016-
/// .Hint(Hint.SystemThreadingLock, "Off")
1017-
/// .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
1018-
/// </code>
1019-
/// </example>
1020-
/// </summary>
1021-
/// <seealso cref="IConfiguration.Hint"/>
1022-
SystemThreadingLock,
1023-
1024-
/// <summary>
1025-
/// Undocumented feature, for now only for internal use.
1026-
/// </summary>
1027-
LocalFunctionLines
1002+
Comments
10281003
}
10291004

10301005
/// <summary>

src/Pure.DI.Core/Core/BindingsFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public MdBinding CreateAccumulatorBinding(
6363
targetNode.Binding.SemanticModel,
6464
ImmutableArray.Create(new MdContract(targetNode.Binding.SemanticModel, accumulator.Source, accumulator.AccumulatorType, ContractKind.Implicit, ImmutableArray<MdTag>.Empty)),
6565
ImmutableArray<MdTag>.Empty,
66-
new MdLifetime(targetNode.Binding.SemanticModel, accumulator.Source, Lifetime.Transient),
66+
new MdLifetime(targetNode.Binding.SemanticModel, accumulator.Source, Lifetime.PerBlock),
6767
null,
6868
null,
6969
null,

src/Pure.DI.Core/Core/Code/BlockCodeBuilder.cs

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)