135 references to IsAttached
Aspire.Dashboard.Components.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
41if (!Debugger.IsAttached) 104if (task.IsCompleted || Debugger.IsAttached) 137if (task.IsCompleted || Debugger.IsAttached)
Aspire.Dashboard.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
41if (!Debugger.IsAttached) 104if (task.IsCompleted || Debugger.IsAttached) 137if (task.IsCompleted || Debugger.IsAttached)
Aspire.Hosting (1)
Dcp\Model\Executable.cs (1)
252public string Mode { get; set; } = System.Diagnostics.Debugger.IsAttached ? ProjectLaunchMode.Debug : ProjectLaunchMode.NoDebug;
Aspire.Hosting.Kafka.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
41if (!Debugger.IsAttached) 104if (task.IsCompleted || Debugger.IsAttached) 137if (task.IsCompleted || Debugger.IsAttached)
Aspire.Hosting.PostgreSQL.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
41if (!Debugger.IsAttached) 104if (task.IsCompleted || Debugger.IsAttached) 137if (task.IsCompleted || Debugger.IsAttached)
Aspire.Hosting.RabbitMQ.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
41if (!Debugger.IsAttached) 104if (task.IsCompleted || Debugger.IsAttached) 137if (task.IsCompleted || Debugger.IsAttached)
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
316if (Debugger.IsAttached)
Aspire.Hosting.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
41if (!Debugger.IsAttached) 104if (task.IsCompleted || Debugger.IsAttached) 137if (task.IsCompleted || Debugger.IsAttached)
dotnet-openapi (1)
DebugMode.cs (1)
20while (!Debugger.IsAttached)
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorBehavior.cs (1)
231if (System.Diagnostics.Debugger.IsAttached)
GetDocument.Insider (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25104.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
28if (Debugger.IsAttached)
IIS.Common.TestLib (2)
TestConnections.cs (2)
132if (!Debugger.IsAttached) 167if (!Debugger.IsAttached)
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
ILLink.RoslynAnalyzer (4)
COMAnalyzer.cs (1)
31 if (!System.Diagnostics.Debugger.IsAttached)
DynamicallyAccessedMembersAnalyzer.cs (1)
94 if (!Debugger.IsAttached)
RequiresAnalyzerBase.cs (1)
44 if (!System.Diagnostics.Debugger.IsAttached)
TrimAnalysis\TrimDataFlowAnalysis.cs (1)
77 static readonly TracingType tracingMechanism = Debugger.IsAttached ? TracingType.Debug : TracingType.Console;
Infrastructure.Common (1)
xunit\WcfTestCase.cs (1)
54if (_failFastDuration != System.Threading.Timeout.InfiniteTimeSpan && !System.Diagnostics.Debugger.IsAttached)
InMemory.FunctionalTests (2)
HttpConnectionManagerTests.cs (1)
116public bool IsMet => !Debugger.IsAttached;
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
105if (!Debugger.IsAttached)
Interop.FunctionalTests (2)
Http3\Http3RequestTests.cs (1)
1918var retryCount = !Debugger.IsAttached ? 5 : int.MaxValue;
HttpHelpers.cs (1)
98if (Debugger.IsAttached)
Microsoft.AspNetCore.BrowserTesting (1)
BrowserTestBase.cs (1)
58if (Debugger.IsAttached)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
AuthorizeViewTest.cs (1)
20private static readonly TimeSpan Timeout = Debugger.IsAttached ? System.Threading.Timeout.InfiniteTimeSpan : TimeSpan.FromSeconds(10);
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\RemoteRendererTest.cs (1)
26private static readonly TimeSpan Timeout = Debugger.IsAttached ? System.Threading.Timeout.InfiniteTimeSpan : TimeSpan.FromSeconds(10);
Microsoft.AspNetCore.Components.Tests (4)
ComponentBaseTest.cs (1)
14private static readonly TimeSpan Timeout = Debugger.IsAttached ? System.Threading.Timeout.InfiniteTimeSpan : TimeSpan.FromSeconds(10);
NavigationManagerTest.cs (1)
14private static readonly TimeSpan Timeout = Debugger.IsAttached ? System.Threading.Timeout.InfiniteTimeSpan : TimeSpan.FromSeconds(10);
RendererTest.cs (1)
22private static readonly TimeSpan Timeout = Debugger.IsAttached ? System.Threading.Timeout.InfiniteTimeSpan : TimeSpan.FromSeconds(10);
Rendering\RendererSynchronizationContextTest.cs (1)
13public TimeSpan Timeout = Debugger.IsAttached ? System.Threading.Timeout.InfiniteTimeSpan : TimeSpan.FromSeconds(10);
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\Debugger\SystemDebugger.cs (1)
29public bool IsAttached => Debugger.IsAttached;
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
39var timeout = !Debugger.IsAttached ? TimeSpan.FromSeconds(30) : Timeout.InfiniteTimeSpan;
Microsoft.AspNetCore.Http (2)
Internal\IDebugger.cs (1)
19public bool IsAttached => Debugger.IsAttached;
Timeouts\RequestTimeoutsMiddleware.cs (1)
31if (Debugger.IsAttached)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionManager.cs (2)
155if (!Debugger.IsAttached && lastSeenTick.HasValue && (ticks - lastSeenTick.Value) > _disconnectTimeout) 167if (!Debugger.IsAttached)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.InternalTesting (2)
src\Shared\TaskExtensions.cs (2)
81if (task.IsCompleted || Debugger.IsAttached) 115if (task.IsCompleted || Debugger.IsAttached)
Microsoft.AspNetCore.Mvc.Testing (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25104.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
28if (Debugger.IsAttached)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.OutputCaching.Tests (1)
CachedResponseBodyTests.cs (1)
12private readonly int _timeout = Debugger.IsAttached ? -1 : 5000;
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
CachedResponseBodyTests.cs (1)
12private readonly int _timeout = Debugger.IsAttached ? -1 : 5000;
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
121if (Debugger.IsAttached && string.Equals("DEBUG", httpContext.Request.Method, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
26private readonly TimeSpan ShutdownTimeSpan = Debugger.IsAttached ? TimeSpan.FromMinutes(60) : TimeSpan.FromMinutes(2);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\DebuggerWrapper.cs (1)
15public bool IsAttached => Debugger.IsAttached;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
105if (!Debugger.IsAttached)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (2)
503if (!Debugger.IsAttached) 706if (Debugger.IsAttached || _connectionAborted)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.SignalR.Specification.Tests (4)
Internal\TaskExtensions.cs (2)
19if (task.IsCompleted || Debugger.IsAttached) 42if (task.IsCompleted || Debugger.IsAttached)
src\Shared\TaskExtensions.cs (2)
81if (task.IsCompleted || Debugger.IsAttached) 115if (task.IsCompleted || Debugger.IsAttached)
Microsoft.AspNetCore.TestHost (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25104.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
28if (Debugger.IsAttached)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
743if (Debugger.IsAttached)
Microsoft.CodeAnalysis (2)
InternalUtilities\FailFast.cs (2)
29if (Debugger.IsAttached) 103if (Debugger.IsAttached)
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
29if (Debugger.IsAttached) 103if (Debugger.IsAttached)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
161var executeSerially = Debugger.IsAttached;
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
53if (timeout is { } t && !Debugger.IsAttached)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1317if (Debugger.IsAttached)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
29if (Debugger.IsAttached) 103if (Debugger.IsAttached)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
29if (Debugger.IsAttached) 103if (Debugger.IsAttached)
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
29if (Debugger.IsAttached) 103if (Debugger.IsAttached)
Microsoft.CodeAnalysis.LanguageServer (1)
Program.cs (1)
87while (!Debugger.IsAttached && !timeoutSource.Token.IsCancellationRequested)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationExtensions.cs (1)
355if (!System.Diagnostics.Debugger.IsAttached)
Microsoft.CodeAnalysis.Workspaces (4)
Shared\TestHooks\AsynchronousOperationListener.cs (1)
36TrackActiveTokens = Debugger.IsAttached || enableDiagnosticTokens;
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
29if (Debugger.IsAttached) 103if (Debugger.IsAttached)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
161var executeSerially = Debugger.IsAttached;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
29if (Debugger.IsAttached) 103if (Debugger.IsAttached)
Microsoft.Extensions.Hosting.Testing (1)
HostTerminatorService.cs (1)
18internal bool DebuggerAttached = Debugger.IsAttached;
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\Debugger\SystemDebugger.cs (1)
29public bool IsAttached => Debugger.IsAttached;
Microsoft.Extensions.Logging.Debug (1)
DebugLogger.cs (1)
35return Debugger.IsAttached && logLevel != LogLevel.None;
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\Program.cs (1)
93if (Debugger.IsAttached)
Microsoft.Maui (2)
HotReload\HotReloadHelper.cs (1)
26 public static bool IsEnabled { get; set; } = Debugger.IsAttached;
VisualDiagnostics\DebuggerHelper.cs (1)
14 public static bool DebuggerIsAttached => _mockDebuggerIsAttached || Debugger.IsAttached;
Microsoft.ML.TestFrameworkCommon (1)
AsyncTestHelper.cs (1)
16return Debugger.IsAttached ? TimeSpan.FromHours(1) : TimeSpan.FromMinutes(1);
MSBuild (3)
XMake.cs (3)
616if (Debugger.IsAttached) 2528if (!Debugger.IsAttached) 2532while (!Debugger.IsAttached)
PresentationCore (2)
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
271System.Diagnostics.Debugger.IsAttached || 369get { return s_IsEnableVisualTreeChangedAllowed ?? System.Diagnostics.Debugger.IsAttached; }
Shared (1)
Debugger\SystemDebugger.cs (1)
29public bool IsAttached => Debugger.IsAttached;
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
105if (!Debugger.IsAttached)
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
105if (!Debugger.IsAttached)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
47private static readonly int _semaphoreWaitTimeout = Debugger.IsAttached ? 10000 : 2500;
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (1)
172_lock = new SpinLock(Debugger.IsAttached); // only enable thread tracking if debugger is attached; it adds non-trivial overheads to Enter/Exit
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.Unix.cs (1)
18if (Debugger.IsAttached)
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvokerCommon.cs (3)
116else if (((strategy & InvokerStrategy.HasBeenInvoked_ObjSpanArgs) == 0) && !Debugger.IsAttached) 145else if (((strategy & InvokerStrategy.HasBeenInvoked_Obj4Args) == 0) && !Debugger.IsAttached) 168if (((strategy & InvokerStrategy.HasBeenInvoked_RefArgs) == 0) && !Debugger.IsAttached)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
275if (Debugger.IsAttached)
src\System\Diagnostics\Debugger.cs (2)
26public static bool Launch() => IsAttached || LaunchInternal(); 43if (IsAttached)
System.Windows.Forms (3)
System\Windows\Forms\Application.ThreadContext.cs (1)
944if (Debugger.IsAttached)
System\Windows\Forms\Control.cs (1)
1152public static bool CheckForIllegalCrossThreadCalls { get; set; } = Debugger.IsAttached;
System\Windows\Forms\NativeWindow.cs (1)
210if (Debugger.IsAttached)
System.Xaml (1)
System\Xaml\InfosetObjects\XamlReaderSettings.cs (1)
41if (Debugger.IsAttached)
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
149!Debugger.IsAttached &&
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
149!Debugger.IsAttached &&
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
149!Debugger.IsAttached &&
Templates.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
149!Debugger.IsAttached &&