Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikus1993 committed Jun 8, 2024
1 parent 76aedd3 commit 5913eba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
var subscriber = serviceScope.ServiceProvider.GetRequiredService(type.Handler);
var handle = _methodInfos.GetOrAdd(type.Message,
(messageType) =>
typeof(IMessageSubscriber<>).MakeGenericType(messageType).GetMethod("Handle")!);
typeof(IMessageSubscriber<>).MakeGenericType(messageType).GetMethod(nameof(IMessageSubscriber<IMessage>.Handle))!);

var result = await (Task<Result<Unit>>)handle.Invoke(subscriber, [msg, ct])!;
if (!result.IsSuccess)
Expand Down

0 comments on commit 5913eba

Please sign in to comment.