dolittle/DotNET.SDK

View on GitHub
Source/SDK/Proto/ServiceCollectionExtensions.cs

Summary

Maintainability
A
2 hrs
Test Coverage
F
0%

Method AddProtoInfra has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static IServiceCollection AddProtoInfra(this IServiceCollection services, GetClusterKinds getClusterKinds)
    {
        return AddProtoCluster(services, getClusterKinds)
            .AddSingleton<GetServiceProviderForTenant>(sp =>
            {
Severity: Minor
Found in Source/SDK/Proto/ServiceCollectionExtensions.cs - About 1 hr to fix

    Method AddProtoCluster has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static IServiceCollection AddProtoCluster(this IServiceCollection self, GetClusterKinds getClusterKinds)
        {
            self.AddSingleton(p =>
            {
                var loggerFactory = p.GetRequiredService<ILoggerFactory>();
    Severity: Minor
    Found in Source/SDK/Proto/ServiceCollectionExtensions.cs - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status