Beispiel #1
0
        public override void Configure(IRequestPipelineBuilder builder, IServiceProvider serviceProvider)
        {
            var toggleInfo = new RequestFilterToggleInfo
            {
                Tags = Tags,
                ToggleDisabledFilterType = ToggleDisabledFilterType,
                ToggleEnabledFilterType  = _toggleEnabledFilterType,
                ToggleName = ToggleName
            };

            builder.AddFilterSelector(new RequestFilterToggleFilterSelector(toggleInfo));
        }
Beispiel #2
0
 public RequestFilterToggleFilterSelector(RequestFilterToggleInfo toggleInfo)
 {
     _toggleInfo = toggleInfo;
 }