Source/SDK/DolittleClient.cs
File DolittleClient.cs
has 363 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
#if NET5_0_OR_GREATER
Method Connect
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<IDolittleClient> Connect(DolittleClientConfiguration configuration, CancellationToken cancellationToken = default)
{
if (IsConnected)
{
throw new CannotConnectDolittleClientMultipleTimes();
Method CreateDependencies
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async Task CreateDependencies(
IPerformMethodCalls methodCaller,
DolittleClientConfiguration config,
ILoggerFactory loggerFactory,
ExecutionContext executionContext,
Method StartEventProcessors
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
void StartEventProcessors(IPerformMethodCalls methodCaller, TimeSpan pingInterval, ExecutionContext executionContext, ILoggerFactory loggerFactory)
{
var reverseCallClientsCreator = new ReverseCallClientCreator(
pingInterval,
methodCaller,
Method CreateDependencies
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IPerformMethodCalls methodCaller,
DolittleClientConfiguration config,
ILoggerFactory loggerFactory,
ExecutionContext executionContext,
IEnumerable<Tenant> tenants)