Skip to content

Commit ef328f8

Browse files
authored
Merge pull request #34 from A-Programmer/feature/Add_Pagination_Request_Options
Make DI registration public and fix minor essues
2 parents 59504f7 + cc412e8 commit ef328f8

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)