Skip to content

Commit 38d7afd

Browse files
committed
Fix typo in ServiceLifetimeUtilities class name
Renamed ServiceLifetimeUtlities to ServiceLifetimeUtilities and updated all references to correct the spelling. This improves code clarity and prevents potential confusion.
1 parent e7fdd0c commit 38d7afd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/CodeOfChaos.Extensions.DependencyInjection.Generators/InjectableData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static IEnumerable<InjectableData> FromInjectableAttribute(GeneratorAttri
3131

3232
foreach (AttributeData attributeData in context.Attributes) {
3333
int lifetime = attributeData.ConstructorArguments[0].Value as int? ?? -1;
34-
yield return ExtractServiceData(classSymbol, attributeData, ServiceLifetimeUtlities.ToLifetime(lifetime), firstArgumentIndex: 1);
34+
yield return ExtractServiceData(classSymbol, attributeData, ServiceLifetimeUtilities.ToLifetime(lifetime), firstArgumentIndex: 1);
3535
}
3636
}
3737

@@ -59,7 +59,7 @@ public static IEnumerable<InjectableData> FromSyntaxAnalyzer(SyntaxNodeAnalysisC
5959
switch (fullMetadataName) {
6060
case SourceCodes.InjectableAttributeMetadataName: {
6161
int lifetime = attributeData.ConstructorArguments[0].Value as int? ?? -1;
62-
yield return ExtractServiceData(classSymbol, attributeData, ServiceLifetimeUtlities.ToLifetime(lifetime), 1);
62+
yield return ExtractServiceData(classSymbol, attributeData, ServiceLifetimeUtilities.ToLifetime(lifetime), 1);
6363
break;
6464
}
6565

src/CodeOfChaos.Extensions.DependencyInjection.Generators/ServiceLifetime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public enum ServiceLifetime {
1313
Transient = 2,
1414
}
1515

16-
public static class ServiceLifetimeUtlities {
16+
public static class ServiceLifetimeUtilities {
1717
public static string ToFriendlyString(this ServiceLifetime lifetime) => lifetime switch {
1818
ServiceLifetime.Singleton => "Singleton",
1919
ServiceLifetime.Scoped => "Scoped",

0 commit comments

Comments
 (0)