dolittle/DotNET.SDK

View on GitHub
Source/Services/ReverseCallClient.cs

Summary

Maintainability
C
1 day
Test Coverage
F
0%

File ReverseCallClient.cs has 297 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Threading;
using System.Threading.Tasks;
using Dolittle.SDK.DependencyInversion;
using Dolittle.SDK.Execution;
Severity: Minor
Found in Source/Services/ReverseCallClient.cs - About 3 hrs to fix

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

        public async Task<bool> Connect(TConnectArguments connectArguments, CancellationToken cancellationToken)
        {
            ThrowIfConnecting();
            lock (_connectLock)
            {
    Severity: Major
    Found in Source/Services/ReverseCallClient.cs - About 2 hrs to fix

      Method Handle has 53 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public async Task Handle(IReverseCallHandler<TRequest, TResponse> handler, CancellationToken cancellationToken)
          {
              ThrowIfConnectionNotEstablished();
              ThrowIfAlreadyStartedHandling();
              lock (_handleLock)
      Severity: Major
      Found in Source/Services/ReverseCallClient.cs - About 2 hrs to fix

        Method OnReceivedRequest has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            async Task OnReceivedRequest(IReverseCallHandler<TRequest, TResponse> handler, TRequest request, CancellationToken cancellationToken)
            {
                try
                {
                    var requestContext = _protocol.GetRequestContextFrom(request);
        Severity: Minor
        Found in Source/Services/ReverseCallClient.cs - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status