You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
673 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace CoreAgent.ProtocolClient.ProtocolWsClient
{
public partial class ProtocolWsClient
{
#region 资源释放
public void Dispose()
{
if (_disposed) return;
_disposed = true;
Stop();
StopTimers();
_statsManager?.Dispose();
_messageManager?.Dispose();
_logger.LogInformation($"[{_config.Name}] 释放WebSocket客户端");
GC.SuppressFinalize(this);
}
#endregion
}
}