This commit is contained in:
Diego
2025-07-22 01:17:12 +08:00
parent 605830edce
commit 232ee5d5d4
904 changed files with 734 additions and 4661 deletions

View File

@@ -21,7 +21,6 @@ namespace ThingsGateway.Foundation;
/// </summary>
public class SerialPortChannel : SerialPortClient, IClientChannel
{
public SerialPortChannel(IChannelOptions channelOptions)
{
ChannelOptions = channelOptions;
@@ -76,7 +75,6 @@ public class SerialPortChannel : SerialPortClient, IClientChannel
/// <inheritdoc/>
public override async Task<Result> CloseAsync(string msg, CancellationToken token)
{
if (Online)
{
try
@@ -126,8 +124,6 @@ public class SerialPortChannel : SerialPortClient, IClientChannel
}
}
/// <inheritdoc/>
public void SetDataHandlingAdapter(DataHandlingAdapter adapter)
{
@@ -151,7 +147,6 @@ public class SerialPortChannel : SerialPortClient, IClientChannel
return base.ToString();
}
protected override async Task OnSerialClosed(ClosedEventArgs e)
{
Logger?.Info($"{ToString()} Closed{(e.Message.IsNullOrEmpty() ? string.Empty : $" -{e.Message}")}");
@@ -196,7 +191,6 @@ public class SerialPortChannel : SerialPortClient, IClientChannel
await this.OnChannelReceivedEvent(e, ChannelReceived).ConfigureAwait(false);
}
/// <inheritdoc/>
protected override void Dispose(bool disposing)
{