Skip to content

Commit d8e445a

Browse files
pingvin1308mgravellmeirkr
authored
Update ServicesExtensions.cs (#275)
* Update ServicesExtensions.cs replace string format by index with names * Update src/protobuf-net.Grpc.AspNetCore/ServicesExtensions.cs Co-authored-by: Meir Kriheli <[email protected]> --------- Co-authored-by: Marc Gravell <[email protected]> Co-authored-by: Meir Kriheli <[email protected]>
1 parent e407274 commit d8e445a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/protobuf-net.Grpc.AspNetCore/ServicesExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public CodeFirstServiceMethodProvider(ILoggerFactory loggerFactory, BinderConfig
4343
void IServiceMethodProvider<TService>.OnServiceMethodDiscovery(ServiceMethodProviderContext<TService> context)
4444
{
4545
int count = new Binder(_logger).Bind<TService>(context, _binderConfiguration);
46-
if (count != 0) _logger.Log(LogLevel.Information, "RPC services being provided by {0}: {1}", typeof(TService), count);
46+
if (count != 0) _logger.Log(LogLevel.Information, "RPC services being provided by {Service}: {Count}", typeof(TService), count);
4747
}
4848
}
4949
private sealed class Binder : ServerBinder
@@ -89,4 +89,4 @@ protected override bool TryBind<TService, TRequest, TResponse>(ServiceBindContex
8989
}
9090
}
9191
}
92-
}
92+
}

0 commit comments

Comments
 (0)