Class GoogleTraceBeforeMvcAnalyzer
Analyzer which checks to make sure the earliest usage of the UseGoogleTrace extension method on an IApplicationBuilder symbol happens before the earliest usage any UseMvc... extension method on the same symbol. Chains of method calls all on an IApplicationBuilder are assumed to all be called on the same instance.
Inheritance
System.Object
GoogleTraceBeforeMvcAnalyzer
Namespace: Google.Cloud.Diagnostics.AspNetCore.Analyzers
Assembly: Google.Cloud.Diagnostics.AspNetCore.Analyzers.dll
Syntax
public class GoogleTraceBeforeMvcAnalyzer : DiagnosticAnalyzer
Fields
RuleId
Declaration
public const string RuleId = "GCP0005"
Field Value
Type | Description |
---|---|
System.String |
Properties
SupportedDiagnostics
Declaration
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<DiagnosticDescriptor> |
Methods
Initialize(AnalysisContext)
Declaration
public override void Initialize(AnalysisContext context)
Parameters
Type | Name | Description |
---|---|---|
AnalysisContext | context |