101 references to FailFast
CodeStyleConfigFileGenerator (1)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
csc (1)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (1)
58Environment.FailFast(message);
dotnet (4)
Commands\Test\MTP\IPC\Serializers\UnknownMessageSerializer.cs (1)
18=> Environment.FailFast("SDK never serializes UnknownMessage. This should never be hit.");
Commands\Test\MTP\TestApplication.cs (2)
244Environment.FailFast(exAsString); 318Environment.FailFast(exAsString);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26307.102\contentFiles\cs\net11.0\Debug.cs (1)
70Environment.FailFast(message);
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AssertHelper.cs (1)
42Environment.FailFast(message);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
170Environment.FailFast(failFastMessage);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (3)
308Environment.FailFast("Cache write lock is not held."); 370Environment.FailFast("Cache write lock is not held."); 387Environment.FailFast("Cache write lock is not held.");
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Infrastructure.Common (1)
xunit\WcfTestCase.cs (1)
56timer = new Timer((s) => Environment.FailFast($"Test timed out after duration {_failFastDuration}"),
Microsoft.Build.Framework (1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1387Environment.FailFast(CreateAnalyzerExceptionDiagnostic(analyzer, ex, info).ToString());
InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
SourceGeneration\GeneratorDriver.cs (1)
453Environment.FailFast(CreateGeneratorExceptionDiagnostic(messageProvider, sourceGenerator, e, isInit).ToString());
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
70Environment.FailFast(message);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
54Environment.FailFast(message);
System.Diagnostics.Process (2)
System\Diagnostics\ProcessWaitState.Unix.cs (2)
603Environment.FailFast("Error while reaping child. errno = " + errorCode); 649Environment.FailFast("Error while checking for terminated children. errno = " + errorCode);
System.Net.Sockets (2)
System\Net\Sockets\SocketAsyncContext.Unix.cs (2)
903Environment.FailFast("unexpected queue state"); 991Environment.FailFast("unexpected queue state");
System.Private.CoreLib (9)
Internal\IntrinsicSupport\ComparerHelpers.cs (1)
88Environment.FailFast("Unable to create comparer");
Internal\IntrinsicSupport\EqualityComparerHelpers.cs (1)
101Environment.FailFast("Unable to create comparer");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (1)
93Environment.FailFast($"Failed to load app-local ICU: {library}");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.Unix.cs (1)
31Environment.FailFast(GetIcuLoadFailureMessage());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
471System.Environment.FailFast(MesgFailFast);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
71Environment.FailFast(message);
System\Exception.NativeAot.cs (1)
104Environment.FailFast("Exceptions must derive from the System.Exception class");
System\Runtime\InteropServices\PInvokeMarshal.cs (2)
222Environment.FailFast(SR.Delegate_GarbageCollected); 297Environment.FailFast(SR.Delegate_GarbageCollected);
System.Private.TypeLoader (18)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (12)
49Environment.FailFast("Canonical types do not have EETypes"); 67Environment.FailFast("Canonical types do not have EETypes"); 95Environment.FailFast("Unable to compute call information for a canonical interface"); 124Environment.FailFast("Unable to compute call information for a canonical type/method."); 161Environment.FailFast("Unable to compute call information for a canonical type/method."); 207Environment.FailFast("Unable to find exact method pointer for a resolved GVM."); 221Environment.FailFast("Unable to compute static field locations for a canonical type."); 257Environment.FailFast("Unable to compute static field locations for a canonical type."); 275Environment.FailFast("Method dictionaries of canonical methods do not exist"); 295Environment.FailFast("Ldtoken is not permitted for a canonical field"); 317Environment.FailFast("Ldtoken is not permitted for a canonical method"); 351Environment.FailFast("Canonical types cannot be allocated");
Internal\Runtime\TypeLoader\ModuleList.cs (2)
189Environment.FailFast("Invalid module requested in enumeration: " + preferredModuleHandle.LowLevelToString()); 230Environment.FailFast("Current module queried in wrong enumerator state");
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (2)
126Environment.FailFast("TypeLoaderLock not held"); 138Environment.FailFast("Reentrant lazy generic lookup");
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (2)
116Environment.FailFast(sb.ToString()); 143Environment.FailFast(sb.ToString());
System.Runtime.InteropServices.JavaScript (14)
System\Runtime\InteropServices\JavaScript\Interop\JavaScriptExports.CoreCLR.cs (2)
34Environment.FailFast($"ReleaseJSOwnedObjectByGCHandle: Unexpected synchronous failure (ManagedThreadId {Environment.CurrentManagedThreadId}): " + ex); 93Environment.FailFast($"CompleteTask: Unexpected synchronous failure (ManagedThreadId {Environment.CurrentManagedThreadId}): " + ex);
System\Runtime\InteropServices\JavaScript\JSHostImplementation.CoreCLR.cs (2)
54Environment.FailFast($"Can't find {nameSpace}{shortClassName} in {assemblyName} assembly"); 59Environment.FailFast($"Can't find method wrapper {wrapperName} in {nameSpace}.{shortClassName} in {assemblyName} assembly");
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
495Environment.FailFast($"ReleaseCSOwnedObject expected to find registration for JSHandle: {jsHandle}, ManagedThreadId: {Environment.CurrentManagedThreadId}. {Environment.NewLine} {Environment.StackTrace}");
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Task.cs (9)
62Environment.FailFast("Failed to set exception to TaskCompletionSource (arguments buffer is null)"); 73Environment.FailFast("Failed to set exception to TaskCompletionSource (exception raised)"); 80Environment.FailFast("Failed to set result to TaskCompletionSource (marshaler type is none)"); 122Environment.FailFast("Failed to set exception to TaskCompletionSource (arguments buffer is null)"); 135Environment.FailFast("Failed to set exception to TaskCompletionSource (exception raised)"); 143Environment.FailFast("Failed to set result to TaskCompletionSource (marshaler type is none)"); 169Environment.FailFast("Marshalling null return Task to JS is not supported in MT"); 265Environment.FailFast("Marshalling null return Task to JS is not supported in MT"); 341Environment.FailFast("Marshalling null return Task to JS is not supported in MT");
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\IO\MemoryMappedFiles\MemoryMappedFileMemoryManager.cs (1)
32Environment.FailFast("MemoryMappedFileMemoryManager was finalized.");
System.Security.Principal.Windows (3)
System\Security\Principal\WindowsIdentity.cs (3)
780Environment.FailFast(Marshal.GetLastPInvokeErrorMessage()); 800Environment.FailFast(Marshal.GetLastPInvokeErrorMessage()); 805Environment.FailFast(Marshal.GetLastPInvokeErrorMessage());
System.ServiceModel.Primitives (4)
Internals\System\Runtime\Fx.cs (1)
172Environment.FailFast(failFastMessage);
System\ServiceModel\Security\TimeBoundedCache.cs (3)
295Environment.FailFast("Cache write lock is not held."); 357Environment.FailFast("Cache write lock is not held."); 374Environment.FailFast("Cache write lock is not held.");
System.Transactions.Local (10)
System\Transactions\Oletx\OletxTransactionManager.cs (10)
152Environment.FailFast(SR.InternalError); 167Environment.FailFast(SR.InternalError); 187Environment.FailFast(SR.InternalError); 237Environment.FailFast(SR.InternalError); 254Environment.FailFast(SR.InternalError); 268Environment.FailFast(SR.InternalError); 282Environment.FailFast(SR.InternalError); 296Environment.FailFast(SR.InternalError); 315Environment.FailFast(SR.InternalError); 324Environment.FailFast(SR.InternalError);
vbc (1)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (1)
58Environment.FailFast(message);
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (1)
58Environment.FailFast(message);