Esempio n. 1
0
        /// <inheritdoc/>
        public void VisitMethod(MethodInfo methodInfo)
        {
            if (_typeBuilder.IsConcreteMethod(methodInfo) && !_interceptionFilter.AcceptMethod(methodInfo))
            {
                return;
            }

            _typeBuilder.BuildMethod(methodInfo);
            _methodInfos.Add(methodInfo);
        }
Esempio n. 2
0
        /// <inheritdoc/>
        void IProxyDefinitionVisitor.VisitMethod(MethodInfo methodInfo)
        {
            if (_typeBuilder.IsConcreteMethod(methodInfo) && !_interceptionFilter.AcceptMethod(methodInfo))
            {
                return;
            }

            _typeBuilder.BuildMethod(methodInfo);
            _methodInfos.Add(methodInfo);
        }