@@ -20,7 +20,7 @@ public static void ReportDiagnostic(EmitterContext context, IHaveDiagnostics ite
2020 /// Id: ACTR001<br />
2121 /// Title: Ambiguous marked post constructor method
2222 /// </summary>
23- public static readonly DiagnosticDescriptor AmbiguousMarkedPostConstructMethod = new DiagnosticDescriptor (
23+ public static readonly DiagnosticDescriptor ACTR001_AmbiguousMarkedPostConstructMethod = new DiagnosticDescriptor (
2424 id : "ACTR001" ,
2525 title : "Ambiguous marked post constructor method" ,
2626 messageFormat : "Only one method in a type should be marked with an [AutoPostConstruct] attribute" ,
@@ -32,7 +32,7 @@ public static void ReportDiagnostic(EmitterContext context, IHaveDiagnostics ite
3232 /// Id: ACTR002<br />
3333 /// Title: Post construct method must return void
3434 /// </summary>
35- public static readonly DiagnosticDescriptor PostConstructMethodNotVoid = new DiagnosticDescriptor (
35+ public static readonly DiagnosticDescriptor ACTR002_PostConstructMethodNotVoid = new DiagnosticDescriptor (
3636 id : "ACTR002" ,
3737 title : "Post construct method must return void" ,
3838 messageFormat : "The method '{0}' must return void to be used as the post construct method" ,
@@ -44,7 +44,8 @@ public static void ReportDiagnostic(EmitterContext context, IHaveDiagnostics ite
4444 /// Id: ACTR003<br />
4545 /// Title: Post construct method must not have any optional arguments
4646 /// </summary>
47- // public static readonly DiagnosticDescriptor PostConstructMethodHasOptionalArgs = new DiagnosticDescriptor(
47+ // Deprecated in 2.10
48+ // public static readonly DiagnosticDescriptor ACTR003_PostConstructMethodHasOptionalArgs = new DiagnosticDescriptor(
4849 // id: "ACTR003",
4950 // title: "Post construct method must not have any optional arguments",
5051 // messageFormat: "The parameter '{0}' must not be optional",
@@ -56,7 +57,7 @@ public static void ReportDiagnostic(EmitterContext context, IHaveDiagnostics ite
5657 /// Id: ACTR004<br />
5758 /// Title: Post construct method must not be generic
5859 /// </summary>
59- public static readonly DiagnosticDescriptor PostConstructMethodCannotBeGeneric = new DiagnosticDescriptor (
60+ public static readonly DiagnosticDescriptor ACTR004_PostConstructMethodCannotBeGeneric = new DiagnosticDescriptor (
6061 id : "ACTR004" ,
6162 title : "Post construct method must not be generic" ,
6263 messageFormat : "The method '{0}' must not be generic to be used as the post construct method" ,
@@ -68,7 +69,7 @@ public static void ReportDiagnostic(EmitterContext context, IHaveDiagnostics ite
6869 /// Id: ACTR005<br />
6970 /// Title: Post construct out or ref parameter must not be a keyed service
7071 /// </summary>
71- public static readonly DiagnosticDescriptor PostConstructOutParameterCannotBeKeyed = new DiagnosticDescriptor (
72+ public static readonly DiagnosticDescriptor ACTR005_PostConstructOutParameterCannotBeKeyed = new DiagnosticDescriptor (
7273 id : "ACTR005" ,
7374 title : "Post construct out or ref parameter must not be a keyed service" ,
7475 messageFormat : "The parameter '{0}' must not be a keyed service, or cannot be out or ref" ,
@@ -80,7 +81,7 @@ public static void ReportDiagnostic(EmitterContext context, IHaveDiagnostics ite
8081 /// Id: ACTR006<br />
8182 /// Title: Post construct out or ref parameter must not match a keyed field
8283 /// </summary>
83- public static readonly DiagnosticDescriptor PostConstructOutParameterMustNotMatchKeyedField = new DiagnosticDescriptor (
84+ public static readonly DiagnosticDescriptor ACTR006_PostConstructOutParameterMustNotMatchKeyedField = new DiagnosticDescriptor (
8485 id : "ACTR006" ,
8586 title : "Post construct out or ref parameter must not match a keyed field" ,
8687 messageFormat : "The field '{0}' must not be a keyed service when used as a post construct out or ref parameter" ,
0 commit comments