IsInResolutionContext() public method

Method used by handlers to test whether they are being resolved in the context.
This method is provided as part of double dispatch mechanism for use by handlers. Outside of handlers, call IHandler.IsBeingResolvedInContext instead.
public IsInResolutionContext ( IHandler handler ) : bool
handler IHandler
return bool
コード例 #1
0
		public bool IsBeingResolvedInContext(CreationContext context)
		{
			return context.IsInResolutionContext(this);
		}
コード例 #2
0
		public bool IsBeingResolvedInContext(CreationContext context)
		{
			return (context != null && context.IsInResolutionContext(this)) || parentHandler.IsBeingResolvedInContext(context);
		}