Skip to content

Commit 2f9072f

Browse files
committed
Fix that Dynamic Advices are not cached and reused
1 parent 2fa76ff commit 2f9072f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ninject.Extensions.Interception/Registry/AdviceRegistry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public ICollection<IInterceptor> GetInterceptors( IProxyRequest request )
122122
return methodCache[typeHandle];
123123
}
124124

125-
if (HasDynamicAdvice)
125+
if (!HasDynamicAdvice)
126126
{
127127
interceptors = GetInterceptorsForRequest(request);
128128
// If there are no dynamic interceptors defined, we can safely cache the results.

0 commit comments

Comments
 (0)