diff --git a/GameFrameX.Localization/Keys.RemoteMessaging.cs b/GameFrameX.Localization/Keys.RemoteMessaging.cs index 4df237d4..a6766305 100644 --- a/GameFrameX.Localization/Keys.RemoteMessaging.cs +++ b/GameFrameX.Localization/Keys.RemoteMessaging.cs @@ -245,7 +245,7 @@ public static class Observability /// /// 远程消息客户端类别键 /// - public static class Client + public static class ClientModule { /// /// SendOneWayAsync: 熔断器已打开, Service: {0} diff --git a/GameFrameX.NetWork.RemoteMessaging/Composition/RemoteMessageClient.cs b/GameFrameX.NetWork.RemoteMessaging/Composition/RemoteMessageClient.cs index 94377f94..4e8b0143 100644 --- a/GameFrameX.NetWork.RemoteMessaging/Composition/RemoteMessageClient.cs +++ b/GameFrameX.NetWork.RemoteMessaging/Composition/RemoteMessageClient.cs @@ -555,7 +555,7 @@ public async Task SendOneWayAsync( if (!_circuitBreaker.IsAllowed(serviceName)) { // Localization: RemoteMessaging.Client.SendOneWayCircuitBreakerOpen - SendOneWayAsync: 熔断器已打开, Service: {0} - LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.Client.SendOneWayCircuitBreakerOpen, serviceName)); + LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.ClientModule.SendOneWayCircuitBreakerOpen, serviceName)); return; } @@ -563,7 +563,7 @@ public async Task SendOneWayAsync( if (healthScore <= 0) { // Localization: RemoteMessaging.Client.SendOneWayHealthScoreLow - SendOneWayAsync: 服务健康评分过低, Service: {0}, Score: {1} - LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.Client.SendOneWayHealthScoreLow, serviceName, healthScore)); + LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.ClientModule.SendOneWayHealthScoreLow, serviceName, healthScore)); return; } @@ -576,7 +576,7 @@ public async Task SendOneWayAsync( if (_protocolVersionNegotiator != null && !_protocolVersionNegotiator.IsCompatible(requestMessage.GetType())) { // Localization: RemoteMessaging.Client.SendOneWayProtocolVersionIncompatible - SendOneWayAsync: 协议版本不兼容, MessageType: {0} - LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.Client.SendOneWayProtocolVersionIncompatible, requestMessage.GetType().Name)); + LogHelper.Warning(LocalizationService.GetString(Localization.Keys.RemoteMessaging.ClientModule.SendOneWayProtocolVersionIncompatible, requestMessage.GetType().Name)); return; } @@ -692,7 +692,7 @@ private async Task RunExceptionInterceptorsAsync(RemoteCallContext context, Mess catch (Exception ex) { // Localization: RemoteMessaging.Client.InterceptorOnExceptionFailed - 拦截器 OnExceptionAsync 失败 - LogHelper.Error(ex, LocalizationService.GetString(Localization.Keys.RemoteMessaging.Client.InterceptorOnExceptionFailed)); + LogHelper.Error(ex, LocalizationService.GetString(Localization.Keys.RemoteMessaging.ClientModule.InterceptorOnExceptionFailed)); } } }