Skip to content

Commit

Permalink
Aggressive inlining of CheckNotDisposed method in InstanceActivator.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmg committed Dec 27, 2018
1 parent 1676a24 commit 2951f95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Autofac/Core/Activators/InstanceActivator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
// OTHER DEALINGS IN THE SOFTWARE.

using System;
using System.Runtime.CompilerServices;
using Autofac.Util;

namespace Autofac.Core.Activators
Expand Down Expand Up @@ -58,6 +59,7 @@ public override string ToString()
return LimitType.Name + " (" + GetType().Name + ")";
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected void CheckNotDisposed()
{
if (IsDisposed)
Expand Down

0 comments on commit 2951f95

Please sign in to comment.