Skip to content

Commit cc412e8

Browse files
committed
Make DI registration public and fix minor essues
1 parent c0b1fb8 commit cc412e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/KSFramework/KSMessaging/Extensions/RegisterMediatorServices.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static IServiceCollection AddKSMediator(this IServiceCollection services,
7878
return services;
7979
}
8080

81-
private static void RegisterAllImplementationsOf<TInterface>(this IServiceCollection services,
81+
public static IServiceCollection RegisterAllImplementationsOf<TInterface>(this IServiceCollection services,
8282
Assembly[] assemblies,
8383
ServiceLifetime lifetime = ServiceLifetime.Scoped)
8484
{
@@ -108,5 +108,7 @@ private static void RegisterAllImplementationsOf<TInterface>(this IServiceCollec
108108
}
109109
}
110110
}
111+
112+
return services;
111113
}
112114
}

0 commit comments

Comments
 (0)