Skip to content

Commit

Permalink
Renaming in a scope constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed May 1, 2024
1 parent 6e47e78 commit 5088988
Show file tree
Hide file tree
Showing 89 changed files with 202 additions and 203 deletions.
4 changes: 2 additions & 2 deletions readme/ArrayDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ partial class Array
_root = this;
}

internal Array(Array baseComposition)
internal Array(Array parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

[MethodImpl((MethodImplOptions)0x100)]
Expand Down
8 changes: 4 additions & 4 deletions readme/EnumDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,23 @@ partial class Enum
_root = this;
}

internal Enum(Enum baseComposition)
internal Enum(Enum parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

[MethodImpl((MethodImplOptions)0x100)]
public partial Benchmarks.Model.CompositionRoot TestPureDIByCR()
{
[MethodImpl((MethodImplOptions)0x200)]
IEnumerable<Benchmarks.Model.IService3> LocalperBlock10_IEnumerable()
IEnumerable<Benchmarks.Model.IService3> Local_perBlock10_IEnumerable()
{
yield return new Benchmarks.Model.Service3(new Benchmarks.Model.Service4(), new Benchmarks.Model.Service4());
yield return new Benchmarks.Model.Service3v2(new Benchmarks.Model.Service4(), new Benchmarks.Model.Service4());
yield return new Benchmarks.Model.Service3v3(new Benchmarks.Model.Service4(), new Benchmarks.Model.Service4());
yield return new Benchmarks.Model.Service3v4(new Benchmarks.Model.Service4(), new Benchmarks.Model.Service4());
}
IEnumerable<Benchmarks.Model.IService3> perBlock10_IEnumerable = LocalperBlock10_IEnumerable();
IEnumerable<Benchmarks.Model.IService3> perBlock10_IEnumerable = Local_perBlock10_IEnumerable();
return new Benchmarks.Model.CompositionRoot(new Benchmarks.Model.Service1(new Benchmarks.Model.Service2Enum(perBlock10_IEnumerable)), new Benchmarks.Model.Service2Enum(perBlock10_IEnumerable), new Benchmarks.Model.Service2Enum(perBlock10_IEnumerable), new Benchmarks.Model.Service2Enum(perBlock10_IEnumerable), new Benchmarks.Model.Service3(new Benchmarks.Model.Service4(), new Benchmarks.Model.Service4()), new Benchmarks.Model.Service4(), new Benchmarks.Model.Service4());
}

Expand Down
4 changes: 2 additions & 2 deletions readme/FuncDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ partial class Func
_root = this;
}

internal Func(Func baseComposition)
internal Func(Func parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

[MethodImpl((MethodImplOptions)0x100)]
Expand Down
4 changes: 2 additions & 2 deletions readme/SingletonDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ partial class Singleton
_root = this;
}

internal Singleton(Singleton baseComposition)
internal Singleton(Singleton parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

[MethodImpl((MethodImplOptions)0x100)]
Expand Down
4 changes: 2 additions & 2 deletions readme/TransientDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ partial class Transient
_root = this;
}

internal Transient(Transient baseComposition)
internal Transient(Transient parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

[MethodImpl((MethodImplOptions)0x100)]
Expand Down
4 changes: 2 additions & 2 deletions readme/a-few-partial-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand Down
4 changes: 2 additions & 2 deletions readme/accumulators.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ partial class Composition
_lock = new object();
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
_lock = _root._lock;
}

Expand Down
4 changes: 2 additions & 2 deletions readme/advanced-interception.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand Down
8 changes: 4 additions & 4 deletions readme/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ partial class Composition
_arg_serviceName = serviceName;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_arg_id = baseComposition._arg_id;
_arg_serviceName = baseComposition._arg_serviceName;
_root = parentScope._root;
_arg_id = parentScope._arg_id;
_arg_serviceName = parentScope._arg_serviceName;
}

public IService Root
Expand Down
4 changes: 2 additions & 2 deletions readme/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand Down
4 changes: 2 additions & 2 deletions readme/async-disposable-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ partial class Composition: IDisposable, IAsyncDisposable
_disposables = new object[1];
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
_lock = _root._lock;
_disposables = new object[1];
}
Expand Down
4 changes: 2 additions & 2 deletions readme/async-disposable-singleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ partial class Composition: IDisposable, IAsyncDisposable
_disposables = new object[1];
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
_lock = _root._lock;
}

Expand Down
8 changes: 4 additions & 4 deletions readme/async-enumerable.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand All @@ -108,12 +108,12 @@ partial class Composition
get
{
[MethodImpl((MethodImplOptions)0x200)]
async IAsyncEnumerable<IDependency> Localtransient1_IAsyncEnumerable()
async IAsyncEnumerable<IDependency> Local_transient1_IAsyncEnumerable()
{
yield return new AbcDependency();
yield return new XyzDependency();
}
IAsyncEnumerable<IDependency> transient1_IAsyncEnumerable = Localtransient1_IAsyncEnumerable();
IAsyncEnumerable<IDependency> transient1_IAsyncEnumerable = Local_transient1_IAsyncEnumerable();
return new Service(transient1_IAsyncEnumerable);
}
}
Expand Down
4 changes: 2 additions & 2 deletions readme/auto-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public Service MyService
Expand Down
4 changes: 2 additions & 2 deletions readme/auto-scoped.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ partial class Composition
_lock = new object();
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
_lock = _root._lock;
}

Expand Down
4 changes: 2 additions & 2 deletions readme/check-for-a-root.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand Down
4 changes: 2 additions & 2 deletions readme/complex-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public Program<string> Root
Expand Down
4 changes: 2 additions & 2 deletions readme/composition-root-kinds.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

[MethodImpl((MethodImplOptions)0x100)]
Expand Down
4 changes: 2 additions & 2 deletions readme/composition-roots-simplified.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService MyRoot
Expand Down
4 changes: 2 additions & 2 deletions readme/composition-roots.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService MyRoot
Expand Down
6 changes: 3 additions & 3 deletions readme/constructor-ordinal-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ partial class Composition
_arg_serviceName = serviceName;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_arg_serviceName = baseComposition._arg_serviceName;
_root = parentScope._root;
_arg_serviceName = parentScope._arg_serviceName;
}

public IService Root
Expand Down
6 changes: 3 additions & 3 deletions readme/custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ partial class PersonComposition
_arg_personId = personId;
}

internal PersonComposition(PersonComposition baseComposition)
internal PersonComposition(PersonComposition parentScope)
{
_root = baseComposition._root;
_arg_personId = baseComposition._arg_personId;
_root = parentScope._root;
_arg_personId = parentScope._arg_personId;
}

public IPerson Person
Expand Down
4 changes: 2 additions & 2 deletions readme/decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand Down
4 changes: 2 additions & 2 deletions readme/default-lifetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ partial class Composition
_lock = new object();
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
_lock = _root._lock;
}

Expand Down
4 changes: 2 additions & 2 deletions readme/default-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand Down
8 changes: 4 additions & 4 deletions readme/dependent-compositions.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ partial class Composition
_root = this;
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand Down Expand Up @@ -269,9 +269,9 @@ partial class OtherComposition
_root = this;
}

internal OtherComposition(OtherComposition baseComposition)
internal OtherComposition(OtherComposition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
}

public IService Root
Expand Down
4 changes: 2 additions & 2 deletions readme/disposable-singleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ partial class Composition: IDisposable
_disposables = new object[1];
}

internal Composition(Composition baseComposition)
internal Composition(Composition parentScope)
{
_root = baseComposition._root;
_root = parentScope._root;
_lock = _root._lock;
}

Expand Down
Loading

0 comments on commit 5088988

Please sign in to comment.