File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/EntityFrameworkCore.Triggered.Extensions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace Microsoft.Extensions.DependencyInjection
1010{
1111 public static class ServiceCollectionExtensions
1212 {
13- static readonly Type [ ] _triggerTypes = new Type [ ] {
13+ static readonly Type [ ] _wellKnownTriggerTypes = new Type [ ] {
1414 typeof ( IBeforeSaveTrigger < > ) ,
1515 typeof ( IAfterSaveTrigger < > ) ,
1616 typeof ( IAfterSaveFailedTrigger < > ) ,
@@ -24,7 +24,7 @@ public static class ServiceCollectionExtensions
2424
2525 static void RegisterTriggerTypes ( Type triggerImplementationType , IServiceCollection services )
2626 {
27- foreach ( var customTriggerType in _triggerTypes )
27+ foreach ( var customTriggerType in _wellKnownTriggerTypes )
2828 {
2929 var customTriggers = customTriggerType . IsGenericTypeDefinition
3030#pragma warning disable EF1001 // Internal EF Core API usage.
@@ -82,7 +82,7 @@ public static IServiceCollection AddAssemblyTriggers(this IServiceCollection ser
8282 {
8383 var triggerTypes = assemblyType
8484 . GetInterfaces ( )
85- . Where ( x => _triggerTypes . Contains ( x . IsConstructedGenericType ? x . GetGenericTypeDefinition ( ) : x ) ) ;
85+ . Where ( x => _wellKnownTriggerTypes . Contains ( x . IsConstructedGenericType ? x . GetGenericTypeDefinition ( ) : x ) ) ;
8686
8787 var registered = false ;
8888
You can’t perform that action at this time.
0 commit comments