diff --git a/AyCode.Services.Server/SignalRs/AcWebSignalRHubBase.cs b/AyCode.Services.Server/SignalRs/AcWebSignalRHubBase.cs index 6b9d5f2..4c66a6b 100644 --- a/AyCode.Services.Server/SignalRs/AcWebSignalRHubBase.cs +++ b/AyCode.Services.Server/SignalRs/AcWebSignalRHubBase.cs @@ -114,8 +114,8 @@ public abstract class AcWebSignalRHubBase(IConfiguration private static (uint value, int bytesRead) ReadVarUIntFromBytes(byte[] data, int startPos) { uint value = 0; - int shift = 0; - int bytesRead = 0; + var shift = 0; + var bytesRead = 0; while (startPos + bytesRead < data.Length) { @@ -205,7 +205,7 @@ public abstract class AcWebSignalRHubBase(IConfiguration // Log in declaration order (not alphabetically) Logger.Info($"{prefix} Property Count: {props.Length}"); - for (int i = 0; i < props.Length; i++) + for (var i = 0; i < props.Length; i++) { var p = props[i]; var declaringType = p.DeclaringType?.Name ?? "?"; @@ -240,7 +240,7 @@ public abstract class AcWebSignalRHubBase(IConfiguration Logger.Info($"Header property count: {propCount}"); - for (int i = 0; i < (int)propCount && pos < responseData.Length; i++) + for (var i = 0; i < (int)propCount && pos < responseData.Length; i++) { // Read string length as VarUInt var (strLen, strLenBytes) = ReadVarUIntFromBytes(responseData, pos);