Skip to content

Commit 3a8ef4c

Browse files
Reduce amount of change to the LifetimeScope
1 parent 1886204 commit 3a8ef4c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Autofac/Core/Lifetime/LifetimeScope.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,8 @@ public class LifetimeScope : Disposable, ISharingLifetimeScope, IServiceProvider
6969
/// <param name="componentRegistry">Components used in the scope.</param>
7070
/// <param name="parent">Parent scope.</param>
7171
protected LifetimeScope(IComponentRegistry componentRegistry, LifetimeScope parent, object tag)
72+
: this(componentRegistry, tag)
7273
{
73-
_sharedInstances[SelfRegistrationId] = this;
74-
ComponentRegistry = componentRegistry ?? throw new ArgumentNullException(nameof(componentRegistry));
75-
Tag = tag ?? throw new ArgumentNullException(nameof(tag));
7674
parentScope = parent ?? throw new ArgumentNullException(nameof(parent));
7775
RootLifetimeScope = parentScope.RootLifetimeScope;
7876
}

0 commit comments

Comments
 (0)