Skip to content

Commit dfbcc6d

Browse files
committed
Feat: Add SomeIntValue const and extend InjectableTransient examples, minor updates to analyzer release documentation
1 parent ff6af10 commit dfbcc6d

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

examples/Examples.CodeOfChaos.Extensions.DependencyInjection/ExampleService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ namespace Examples.CodeOfChaos.Extensions.DependencyInjection;
1414
[InjectableTransient<IExampleService>]
1515
[InjectableTransient<IExampleService>("null")]
1616
[InjectableTransient<IExampleService>(2)]
17+
[InjectableTransient<IExampleService>(SomeIntValue)]
1718
[InjectableTransient<IExampleService>(Something)]
1819
public class ExampleService : IExampleService {
1920
private const string Something = "something";
21+
private const int SomeIntValue = 3;
2022
}
2123

2224
public interface IExampleService {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Release 0.81.1
22

33
### New Rules
4-
Rule ID | Category | Severity | Notes
5-
----------|------------|----------|----------------------------------------------------------------
6-
COCDI001 | Injectable | Error | Service does not implement the correct Injectable service type
4+
Rule ID | Category | Severity | Notes
5+
---------|------------|----------|----------------------------------------------------------------
6+
COCDI001 | Injectable | Error | Service does not implement the correct Injectable service type
77

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
## Release 0.81.1
2-
31
### New Rules
4-
Rule ID | Category | Severity | Notes
5-
----------|------------|----------|----------------------------------------------------------------
2+
Rule ID | Category | Severity | Notes
3+
---------|------------|----------|----------------------------------------------------------------
4+
65

0 commit comments

Comments
 (0)