1 implementation of ICompatibilitySwitch
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\CompatibilitySwitch.cs (1)
54public class CompatibilitySwitch<TValue> : ICompatibilitySwitch where TValue : struct
46 references to ICompatibilitySwitch
Microsoft.AspNetCore.Mvc.Core (15)
ApiBehaviorOptions.cs (5)
15public class ApiBehaviorOptions : IEnumerable<ICompatibilitySwitch> 17private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>(); 94IEnumerator<ICompatibilitySwitch> IEnumerable<ICompatibilitySwitch>.GetEnumerator() => _switches.GetEnumerator();
Infrastructure\CompatibilitySwitch.cs (2)
50/// implementation of <see cref="ICompatibilitySwitch"/> suitable for use with the <see cref="IOptions{T}"/> 119object ICompatibilitySwitch.Value
Infrastructure\ConfigureCompatibilityOptions.cs (3)
19where TOptions : class, IEnumerable<ICompatibilitySwitch> 58foreach (var @switch in options) 64private void ConfigureSwitch(ICompatibilitySwitch @switch, IReadOnlyDictionary<string, object> defaultValues)
MvcOptions.cs (5)
23public class MvcOptions : IEnumerable<ICompatibilitySwitch> 28private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>(); 373IEnumerator<ICompatibilitySwitch> IEnumerable<ICompatibilitySwitch>.GetEnumerator() => _switches.GetEnumerator();
Microsoft.AspNetCore.Mvc.Core.Test (6)
Infrastructure\CompatibilitySwitchTest.cs (1)
51((ICompatibilitySwitch)@switch).Value = true;
Infrastructure\ConfigureCompatibilityOptionsTest.cs (5)
81private class TestOptions : IEnumerable<ICompatibilitySwitch> 85private readonly ICompatibilitySwitch[] _switches; 90_switches = new ICompatibilitySwitch[] { _testProperty }; 99public IEnumerator<ICompatibilitySwitch> GetEnumerator() 101return ((IEnumerable<ICompatibilitySwitch>)_switches).GetEnumerator();
Microsoft.AspNetCore.Mvc.DataAnnotations (5)
MvcDataAnnotationsLocalizationOptions.cs (5)
13public class MvcDataAnnotationsLocalizationOptions : IEnumerable<ICompatibilitySwitch> 15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>(); 22IEnumerator<ICompatibilitySwitch> IEnumerable<ICompatibilitySwitch>.GetEnumerator() => _switches.GetEnumerator();
Microsoft.AspNetCore.Mvc.Formatters.Xml (5)
MvcXmlOptions.cs (5)
13public class MvcXmlOptions : IEnumerable<ICompatibilitySwitch> 15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>(); 17IEnumerator<ICompatibilitySwitch> IEnumerable<ICompatibilitySwitch>.GetEnumerator() => _switches.GetEnumerator();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (5)
MvcNewtonsoftJsonOptions.cs (5)
17public class MvcNewtonsoftJsonOptions : IEnumerable<ICompatibilitySwitch> 19private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>(); 70IEnumerator<ICompatibilitySwitch> IEnumerable<ICompatibilitySwitch>.GetEnumerator() => _switches.GetEnumerator();
Microsoft.AspNetCore.Mvc.RazorPages (5)
RazorPagesOptions.cs (5)
13public class RazorPagesOptions : IEnumerable<ICompatibilitySwitch> 15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>(); 44IEnumerator<ICompatibilitySwitch> IEnumerable<ICompatibilitySwitch>.GetEnumerator() => _switches.GetEnumerator();
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
MvcViewOptions.cs (5)
17public class MvcViewOptions : IEnumerable<ICompatibilitySwitch> 19private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>(); 47IEnumerator<ICompatibilitySwitch> IEnumerable<ICompatibilitySwitch>.GetEnumerator() => _switches.GetEnumerator();