dolittle/DotNET.SDK

View on GitHub
Source/SDK/DolittleClient.cs

Summary

Maintainability
C
1 day
Test Coverage
F
0%

File DolittleClient.cs has 363 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
#if NET5_0_OR_GREATER
Severity: Minor
Found in Source/SDK/DolittleClient.cs - About 4 hrs to fix

    Method Connect has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public async Task<IDolittleClient> Connect(DolittleClientConfiguration configuration, CancellationToken cancellationToken = default)
        {
            if (IsConnected)
            {
                throw new CannotConnectDolittleClientMultipleTimes();
    Severity: Minor
    Found in Source/SDK/DolittleClient.cs - About 1 hr to fix

      Method CreateDependencies has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          async Task CreateDependencies(
              IPerformMethodCalls methodCaller,
              DolittleClientConfiguration config,
              ILoggerFactory loggerFactory,
              ExecutionContext executionContext,
      Severity: Minor
      Found in Source/SDK/DolittleClient.cs - About 1 hr to fix

        Method StartEventProcessors has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            void StartEventProcessors(IPerformMethodCalls methodCaller, TimeSpan pingInterval, ExecutionContext executionContext, ILoggerFactory loggerFactory)
            {
                var reverseCallClientsCreator = new ReverseCallClientCreator(
                    pingInterval,
                    methodCaller,
        Severity: Minor
        Found in Source/SDK/DolittleClient.cs - About 1 hr to fix

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

                  IPerformMethodCalls methodCaller,
                  DolittleClientConfiguration config,
                  ILoggerFactory loggerFactory,
                  ExecutionContext executionContext,
                  IEnumerable<Tenant> tenants)
          Severity: Minor
          Found in Source/SDK/DolittleClient.cs - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status