From 98835f019232e7ca9fa0c9afc3ef2cf6bfa0345b Mon Sep 17 00:00:00 2001 From: iambossTC Date: Mon, 28 Jul 2025 22:01:05 +0800 Subject: [PATCH] tune. --- Hi.Webapi.csproj | 3 ++- Hubs/RenderingHub.cs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Hi.Webapi.csproj b/Hi.Webapi.csproj index bd4a58d..b2d716e 100644 --- a/Hi.Webapi.csproj +++ b/Hi.Webapi.csproj @@ -10,7 +10,7 @@ Hi.Webapi $(AssemblyName) HiNC webapi class library. - 2 + 5 3.1.$(VersionBuild) HiAPI Debug;Release @@ -32,6 +32,7 @@ true true true + true DEBUG;TRACE diff --git a/Hubs/RenderingHub.cs b/Hubs/RenderingHub.cs index 73ac795..62d8d79 100644 --- a/Hubs/RenderingHub.cs +++ b/Hubs/RenderingHub.cs @@ -13,9 +13,9 @@ namespace Hi.Webapi.Hubs { private readonly RenderingService _renderingService; private readonly ILogger _logger; - private readonly Dictionary _lastFrameCache = new(); - private readonly Dictionary _lastFrameTime = new(); - private readonly Dictionary _sketchViewCache = new(); + private readonly Dictionary _lastFrameCache = []; + private readonly Dictionary _lastFrameTime = []; + private readonly Dictionary _sketchViewCache = []; public RenderingHub(RenderingService renderingService, ILogger logger) {