Source/SDK/Proto/ServiceCollectionExtensions.cs
Method AddProtoInfra
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static IServiceCollection AddProtoInfra(this IServiceCollection services, GetClusterKinds getClusterKinds)
{
return AddProtoCluster(services, getClusterKinds)
.AddSingleton<GetServiceProviderForTenant>(sp =>
{
Method AddProtoCluster
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static IServiceCollection AddProtoCluster(this IServiceCollection self, GetClusterKinds getClusterKinds)
{
self.AddSingleton(p =>
{
var loggerFactory = p.GetRequiredService<ILoggerFactory>();