Table of Contents

Class CascadingParameterVsInjectAnalyzer

Namespace
Blazing.Mvvm.Analyzers.Analyzers
Assembly
Blazing.Mvvm.Analyzers.dll

Analyzer that suggests using [Inject] for services instead of [CascadingParameter] in MVVM components. Analyzes components that inherit from MvvmComponentBase/MvvmOwningComponentBase/MvvmLayoutComponentBase.

[DiagnosticAnalyzer("C#", new string[] { })]
public class CascadingParameterVsInjectAnalyzer : DiagnosticAnalyzer

Inheritance

Inherited Members

Properties

SupportedDiagnostics

Returns a set of descriptors for the diagnostics that this analyzer is capable of producing.

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }

Property Value

ImmutableArray<DiagnosticDescriptor>

Methods

Initialize(AnalysisContext)

Called once at session start to register actions in the analysis context.

public override void Initialize(AnalysisContext context)

Parameters

context AnalysisContext