mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-26 13:25:18 +08:00
10.9.63
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user