Skip to content

Commit

Permalink
fix(extensions): 2 trigger classes implementing the same interface no…
Browse files Browse the repository at this point in the history
…t being picked up correctly by AddAssemblyTriggers
  • Loading branch information
Carl-Johan Blomqvist authored and koenbeuk committed Oct 24, 2022
1 parent a176cba commit b30af90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static IServiceCollection AddAssemblyTriggers(this IServiceCollection ser
registered = true;
}

services.TryAdd(new ServiceDescriptor(triggerType, sp => sp.GetRequiredService(assemblyType), ServiceLifetime.Transient));
services.Add(new ServiceDescriptor(triggerType, sp => sp.GetRequiredService(assemblyType), ServiceLifetime.Transient));
}
}

Expand Down

0 comments on commit b30af90

Please sign in to comment.