Beispiel #1
0
        /// <inheritdoc/>
        public void VisitEvent(EventInfo eventInfo)
        {
            if (_typeBuilder.IsConcreteEvent(eventInfo) && !_interceptionFilter.AcceptEvent(eventInfo))
            {
                return;
            }

            _typeBuilder.BuildEvent(eventInfo);
            _eventInfos.Add(eventInfo);
        }
Beispiel #2
0
        /// <inheritdoc/>
        void IProxyDefinitionVisitor.VisitEvent(EventInfo eventInfo)
        {
            if (_typeBuilder.IsConcreteEvent(eventInfo) && !_interceptionFilter.AcceptEvent(eventInfo))
            {
                return;
            }

            _typeBuilder.BuildEvent(eventInfo);
            _eventInfos.Add(eventInfo);
        }