mirror of
https://github.com/RRQM/TouchSocket.git
synced 2025-12-17 17:06:45 +08:00
refactor: 串口类ConnectAsync方法可被重写 (#67)
This commit is contained in:
@@ -230,7 +230,7 @@ public abstract class SerialPortClientBase : SetupConfigObject, ISerialPortSessi
|
||||
#region Connect
|
||||
|
||||
/// <inheritdoc/>
|
||||
public async Task ConnectAsync(int millisecondsTimeout, CancellationToken token)
|
||||
public virtual async Task ConnectAsync(int millisecondsTimeout, CancellationToken token)
|
||||
{
|
||||
this.ThrowIfDisposed();
|
||||
this.ThrowIfConfigIsNull();
|
||||
|
||||
Reference in New Issue
Block a user