Source/Events.Handling/EventHandler.cs
Method Handle
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task Handle(object @event, EventType eventType, EventContext context, IServiceProvider serviceProvider, CancellationToken cancellation)
{
var time = Stopwatch.StartNew();
using var activity = context.CommittedExecutionContext.StartChildActivity($"{_activityName}{@event.GetType().Name}");
activity?
Method Handle
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public async Task Handle(object @event, EventType eventType, EventContext context, IServiceProvider serviceProvider, CancellationToken cancellation)