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

NonProxyableMemberNotification() public method

public NonProxyableMemberNotification ( Type type, MemberInfo memberInfo ) : void
type System.Type
memberInfo System.Reflection.MemberInfo
return void
		public void NonProxyableMemberNotification(Type type, MemberInfo memberInfo)
		{
			if (hook != null)
			{
				//give the inner hook a chance to throw its own exception
				hook.NonProxyableMemberNotification(type, memberInfo);
			}

			// actually we should never get this, since we're doing an interface proxy
			// so if we do, this may mean it's a bug.
			throw new NotSupportedException(
				string.Format("Member {0}.{1} is non virtual hence can not be proxied. If you think it's a bug, please report it.",
				              type.FullName, memberInfo.Name));
		}