Castle.Facilities.WcfIntegration.Proxy.WcfProxyGenerationHook.ShouldInterceptMethod C# (CSharp) Method

ShouldInterceptMethod() public method

public ShouldInterceptMethod ( Type type, MethodInfo methodInfo ) : bool
type System.Type
methodInfo System.Reflection.MethodInfo
return bool
		public bool ShouldInterceptMethod(Type type, MethodInfo methodInfo)
		{
			if (IsChannelHolderMethod(methodInfo))
			{
				return false;
			}

			if (hook != null)
			{
				return hook.ShouldInterceptMethod(type, methodInfo);
			}

			return true;
		}