16 references to DoNotUseHostConfigureLogging
Microsoft.AspNetCore.App.Analyzers (3)
WebApplicationBuilder\WebApplicationBuilderAnalyzer.cs (3)
25
DiagnosticDescriptors.
DoNotUseHostConfigureLogging
,
137
DiagnosticDescriptors.
DoNotUseHostConfigureLogging
,
153
DiagnosticDescriptors.
DoNotUseHostConfigureLogging
,
Microsoft.AspNetCore.App.Analyzers.Test (11)
WebApplicationBuilder\DisallowConfigureHostLoggingTest.cs (11)
79
var expectedDiagnosis = new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0);
108
var expectedDiagnosis = new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0);
135
var expectedDiagnosis = new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0);
165
var expectedDiagnosis = new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0);
206
var expectedDiagnosis = new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0);
249
var expectedDiagnosis = new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0);
273
Assert.Same(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
, diagnostic.Descriptor);
303
new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0),
304
new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(1)
328
var expectedDiagnosis = new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0);
354
var expectedDiagnosis = new DiagnosticResult(DiagnosticDescriptors.
DoNotUseHostConfigureLogging
).WithArguments("ConfigureLogging").WithLocation(0);
Microsoft.AspNetCore.App.CodeFixes (2)
WebApplicationBuilderFixer.cs (2)
22
DiagnosticDescriptors.
DoNotUseHostConfigureLogging
.Id,
46
case string when id == DiagnosticDescriptors.
DoNotUseHostConfigureLogging
.Id: