Пример #1
0
        public override void Configure(IEventPipelineBuilder builder, IServiceProvider serviceProvider)
        {
            var toggleInfo = new EventFilterToggleInfo
            {
                Tags = Tags,
                ToggleDisabledFilterType = ToggleDisabledFilterType,
                ToggleEnabledFilterType  = _toggleEnabledFilterType,
                ToggleName = ToggleName
            };

            builder.AddFilterSelector(new EventFilterToggleFilterSelector(toggleInfo));
        }
Пример #2
0
 public EventFilterToggleFilterSelector(EventFilterToggleInfo toggleInfo)
 {
     _toggleInfo = toggleInfo;
 }