Skip to content

Commit

Permalink
fix(DependencyInjector): fix construction when class has overridden d…
Browse files Browse the repository at this point in the history
…ependency
  • Loading branch information
jonisavo committed Jun 17, 2022
1 parent bb9bf4c commit 25412e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public DependencyInjector(IEnumerable<DependencyAttribute> dependencyAttributes)
var providerType = dependencyAttribute.ProvideType;

if (DependencyDictionary.ContainsKey(dependencyType))
return;
continue;

DependencyDictionary[dependencyType] = CreateInstance(providerType);
DefaultDependencyTypeDictionary[dependencyType] = providerType;
Expand Down

0 comments on commit 25412e5

Please sign in to comment.