Skip to content

Commit b0a4386

Browse files
committed
Refactor: Adjust injectable generator to modify namespace and class naming for consistency
1 parent df1c728 commit b0a4386

File tree

1 file changed

+2
-3
lines changed
  • src/CodeOfChaos.Extensions.DependencyInjection.Generators

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ public static class SourceCodes {
1717
// -----------------------------------------------------------------------------------------------------------------
1818
public static string GetInjectableGenerator(string assemblyName) => $$"""
1919
// <auto-generated />
20-
using Microsoft.Extensions.DependencyInjection;
2120
using {{assemblyName}}._CodeOfChaosGenerated;
22-
namespace {{assemblyName}};
23-
public static class CodeOfChaos_InjectableRegistration {
21+
namespace Microsoft.Extensions.DependencyInjection;
22+
public static class __{{assemblyName.Replace(".", "")}}_InjectableRegistration {
2423
public static IServiceCollection RegisterServicesFrom{{assemblyName.Replace(".", "")}}(this IServiceCollection services){
2524
InjectableUtility.RegisterServices(services);
2625
InjectableUtility.RegisterSingleton(services);

0 commit comments

Comments
 (0)