Ferrous API Reference

All Types / Ferrous.Concurrency.Analyzers

class DetachedTaskAnalyzer

public sealed class DetachedTaskAnalyzer : DiagnosticAnalyzer

Roslyn diagnostic analyzer (FE0503) that flags detached Task.Run(...) calls inside methods that already have a TaskScope in scope, encouraging structured concurrency via scope.Spawn(...).

Constants

public const string DetachedTaskInScopeDiagnosticId = "FE0503"

Diagnostic ID for detached Task.Run(...) when a TaskScope is in scope.

Properties

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics

Methods

public override void Initialize(AnalysisContext context)