From 0fd234e43a4943c8021a12570c0a8c9a1c44d67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Tue, 10 Oct 2023 15:25:08 +0800 Subject: [PATCH] Trim Null --- Stardust/StarClient.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Stardust/StarClient.cs b/Stardust/StarClient.cs index f89fd555..f9be69f1 100644 --- a/Stardust/StarClient.cs +++ b/Stardust/StarClient.cs @@ -14,8 +14,6 @@ using Stardust.Managers; using Stardust.Models; using Stardust.Services; -using System; -using System.Net.Http; #if NET45_OR_GREATER || NETCOREAPP || NETSTANDARD using System.Net.WebSockets; using WebSocket = System.Net.WebSockets.WebSocket; @@ -572,7 +570,7 @@ public async Task Ping() /// 心跳 /// /// - private async Task PingAsync(PingInfo inf) => await PostAsync("Node/Ping", inf); + private async Task PingAsync(PingInfo inf) => await PostAsync("Node/Ping", inf); private TimeSpan _span; /// 获取相对于服务器的当前时间,避免两端时间差 @@ -677,12 +675,12 @@ public virtual Boolean WriteEvent(String type, String name, String remark) /// /// /// - private async Task ReportAsync(Int32 id, Byte[] data) => await PostAsync("Node/Report?Id=" + id, data); + private async Task ReportAsync(Int32 id, Byte[] data) => await PostAsync("Node/Report?Id=" + id, data); /// 上报服务调用结果 /// /// - public virtual async Task CommandReply(CommandReplyModel model) => await PostAsync("Node/CommandReply", model); + public virtual async Task CommandReply(CommandReplyModel model) => await PostAsync("Node/CommandReply", model); #endregion #region 长连接