Отформатировать списки параметров по код-стайлу
Больше двух параметров — каждый на отдельной строке (закрывающая скобка в конце последнего); два и меньше — в одну строку. Правило добавлено в docs/spec/Код-стайл-Дейл.md; применено к 628 сигнатурам в 253 файлах.
This commit is contained in:
@@ -85,7 +85,10 @@ public sealed class MtlsCertificates
|
||||
/// <param name="certificate">Клиентский сертификат из рукопожатия (null — RequireCertificate не выполнен).</param>
|
||||
/// <param name="chain">Цепочка стандартной проверки (игнорируется — пересобирается на нашу CA).</param>
|
||||
/// <param name="sslPolicyErrors">Ошибки стандартной проверки TLS.</param>
|
||||
public bool ValidateClientCertificate(X509Certificate2? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors)
|
||||
public bool ValidateClientCertificate(
|
||||
X509Certificate2? certificate,
|
||||
X509Chain? chain,
|
||||
SslPolicyErrors sslPolicyErrors)
|
||||
{
|
||||
if (certificate is null)
|
||||
{
|
||||
@@ -129,7 +132,11 @@ public sealed class MtlsCertificates
|
||||
// certificate: Сертификат сервера из рукопожатия.
|
||||
// chain: Цепочка стандартной проверки (игнорируется — пересобирается на нашу CA).
|
||||
// sslPolicyErrors: Ошибки стандартной проверки TLS.
|
||||
private bool ValidateServerCertificate(object? sender, X509Certificate? certificate, X509Chain? chain, SslPolicyErrors sslPolicyErrors)
|
||||
private bool ValidateServerCertificate(
|
||||
object? sender,
|
||||
X509Certificate? certificate,
|
||||
X509Chain? chain,
|
||||
SslPolicyErrors sslPolicyErrors)
|
||||
{
|
||||
if (certificate is null)
|
||||
{
|
||||
@@ -219,7 +226,10 @@ public sealed class MtlsCertificates
|
||||
// configuredPath: Путь из env.
|
||||
// envKey: Env-ключ пути (для сообщения об ошибке).
|
||||
// role: Роль сертификата (для сообщения об ошибке).
|
||||
private static string RequireExistingFile(string configuredPath, string envKey, string role)
|
||||
private static string RequireExistingFile(
|
||||
string configuredPath,
|
||||
string envKey,
|
||||
string role)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(configuredPath))
|
||||
{
|
||||
|
||||
@@ -131,7 +131,10 @@ public sealed class RpcCallLoggingInterceptor : Interceptor
|
||||
// context: Контекст вызова (метод).
|
||||
// startedAt: Метка времени старта вызова (Stopwatch.GetTimestamp).
|
||||
// statusCode: Итоговый gRPC-статус; null — успех (OK).
|
||||
private void LogCall(ServerCallContext context, long startedAt, StatusCode? statusCode)
|
||||
private void LogCall(
|
||||
ServerCallContext context,
|
||||
long startedAt,
|
||||
StatusCode? statusCode)
|
||||
{
|
||||
long elapsedMs = (long)Stopwatch.GetElapsedTime(startedAt).TotalMilliseconds;
|
||||
_logger.LogInformation(
|
||||
|
||||
Reference in New Issue
Block a user