Skip to content

Commit

Permalink
Fix startup error
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Nov 3, 2024
1 parent d9566a5 commit 53063ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static async Task Main(string[] args)
clientBuilder.ConfigureEventHandlers(eventBuilder =>
{
Assembly currentAssembly = typeof(Program).Assembly;
MethodInfo addEventHandlersMethod = eventBuilder.GetType().GetMethod(nameof(EventHandlingBuilder.AddEventHandlers)) ?? throw new InvalidOperationException("Failed to find AddEventHandlers method.");
MethodInfo addEventHandlersMethod = eventBuilder.GetType().GetMethod(nameof(EventHandlingBuilder.AddEventHandlers), 1, [typeof(ServiceLifetime)]) ?? throw new InvalidOperationException("Failed to find AddEventHandlers method.");
foreach (Type type in currentAssembly.GetExportedTypes())
{
if (type.IsAssignableTo(typeof(IEventHandler)))
Expand Down

0 comments on commit 53063ac

Please sign in to comment.