20 references to SetSwitch
Binding.Http.IntegrationTests (1)
OperationContextTests.cs (1)
20AppContext.SetSwitch("System.ServiceModel.OperationContext.DisableAsyncFlow", true);
InteropClient (1)
InteropClient.cs (1)
150AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
677AppContext.SetSwitch("Microsoft.AspNetCore.Authorization.SuppressUseHttpContextAsAuthorizationResource", isEnabled: true);
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
107AppContext.SetSwitch("Microsoft.AspNetCore.Components.Routing.RegexConstraintSupport", true);
Microsoft.AspNetCore.Identity.Test (2)
SignInManagerTest.cs (2)
237AppContext.SetSwitch("Microsoft.AspNetCore.Identity.CheckPasswordSignInAlwaysResetLockoutOnSuccess", true); 257AppContext.SetSwitch("Microsoft.AspNetCore.Identity.CheckPasswordSignInAlwaysResetLockoutOnSuccess", false);
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
RoutingDynamicOrderTest.cs (5)
58AppContext.SetSwitch("Microsoft.AspNetCore.Routing.UseCorrectCatchAllBehavior", isEnabled: true); 81AppContext.SetSwitch("Microsoft.AspNetCore.Routing.UseCorrectCatchAllBehavior", isEnabled: true); 103AppContext.SetSwitch("Microsoft.AspNetCore.Routing.UseCorrectCatchAllBehavior", isEnabled: true); 126AppContext.SetSwitch("Microsoft.AspNetCore.Routing.UseCorrectCatchAllBehavior", isEnabled: true); 147AppContext.SetSwitch("Microsoft.AspNetCore.Routing.UseCorrectCatchAllBehavior", isEnabled: true);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Threading\StaTaskScheduler.cs (1)
99AppContext.SetSwitch("Switch.MS.Internal.DoNotInvokeInWeakEventTableShutdownListener", isEnabled: true);
System.Drawing.Common.Tests (2)
System\Drawing\IconTests.cs (2)
576AppContext.SetSwitch(DontSupportPngFramesInIcons, false); 599AppContext.SetSwitch(DontSupportPngFramesInIcons, true);
System.Private.Windows.Core (1)
System\Private\Windows\CoreAppContextSwitches.cs (1)
51AppContext.SetSwitch(switchName, isSwitchEnabled);
System.Private.Windows.Core.TestUtilities (2)
AppContextSwitchScope.cs (2)
40AppContext.SetSwitch(switchName, enable); 51AppContext.SetSwitch(_switchName, _originalState);
System.ServiceModel.NetNamedPipe.Tests (1)
NetNamedPipeBindingTest.cs (1)
24AppContext.SetSwitch("Switch.System.ServiceModel.UseSha1InPipeConnectionGetHashAlgorithm", true);
System.Windows.Forms.Primitives (1)
System\LocalAppContextSwitches\LocalAppContextSwitches.cs (1)
99AppContext.SetSwitch(switchName, isSwitchEnabled);
System.Windows.Forms.Tests (1)
ModuleInitializer.cs (1)
18AppContext.SetSwitch("System.Windows.Forms.DoNotCatchUnhandledExceptions", isEnabled: true);