Skip to content

Commit a36c910

Browse files
committed
refactor: 更改为异步销毁接口
1 parent 45c9979 commit a36c910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapBlazor/Services/TcpSocket/ITcpSocketClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace BootstrapBlazor.Components;
1010
/// <summary>
1111
/// Represents a TCP socket for network communication.
1212
/// </summary>
13-
public interface ITcpSocketClient : IDisposable
13+
public interface ITcpSocketClient : IAsyncDisposable
1414
{
1515
/// <summary>
1616
/// Gets or sets the size, in bytes, of the receive buffer used for network operations.
@@ -110,5 +110,5 @@ public interface ITcpSocketClient : IDisposable
110110
/// <remarks>Once the connection or resource is closed, it cannot be reopened. Ensure that all necessary
111111
/// operations are completed before calling this method. This method is typically used to clean up resources when
112112
/// they are no longer needed.</remarks>
113-
void Close();
113+
ValueTask Close();
114114
}

0 commit comments

Comments
 (0)