dolittle/DotNET.SDK

View on GitHub
Source/Events.Handling/EventHandler.cs

Summary

Maintainability
A
1 hr
Test Coverage
B
85%

Method Handle has 27 lines of code (exceeds 25 allowed). Consider refactoring.
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?
Severity: Minor
Found in Source/Events.Handling/EventHandler.cs - About 1 hr to fix

    Method Handle has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public async Task Handle(object @event, EventType eventType, EventContext context, IServiceProvider serviceProvider, CancellationToken cancellation)
    Severity: Minor
    Found in Source/Events.Handling/EventHandler.cs - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status