Skip to content

Commit

Permalink
Add AggressiveInlining to EnforceDuringInitialization method in Servi…
Browse files Browse the repository at this point in the history
…ceRegistrationInfo
  • Loading branch information
alexmg committed Oct 2, 2019
1 parent 9caceb0 commit 527c5ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Autofac/Core/Registration/ServiceRegistrationInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public void SkipSource(IRegistrationSource source)
_sourcesToQuery = new Queue<IRegistrationSource>(_sourcesToQuery.Where(rs => rs != source));
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void EnforceDuringInitialization()
{
if (!IsInitializing)
Expand Down

0 comments on commit 527c5ea

Please sign in to comment.