Castle.MicroKernel.Context.CreationContext.IsInResolutionContext C# (CSharp) Méthode

IsInResolutionContext() public méthode

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
Résultat bool
		public bool IsInResolutionContext(IHandler handler)
		{
			return handlerStack.Contains(handler);
		}

Usage Example

		public bool IsBeingResolvedInContext(CreationContext context)
		{
			return context.IsInResolutionContext(this);
		}
All Usage Examples Of Castle.MicroKernel.Context.CreationContext::IsInResolutionContext