File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed
src/BootstrapBlazor/Services/TcpSocket/DataPackage Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -26,21 +26,7 @@ public abstract class DataPackageHandlerBase : IDataPackageHandler
2626 /// <param name="data"></param>
2727 /// <param name="token"></param>
2828 /// <returns></returns>
29- public virtual ValueTask < ReadOnlyMemory < byte > > SendAsync ( ReadOnlyMemory < byte > data , CancellationToken token = default )
30- {
31- return ValueTask . FromResult ( data ) ;
32- }
33-
34- /// <summary>
35- /// <inheritdoc/>
36- /// </summary>
37- /// <param name="data"></param>
38- /// <param name="token"></param>
39- /// <returns></returns>
40- public virtual ValueTask ReceiveAsync ( ReadOnlyMemory < byte > data , CancellationToken token = default )
41- {
42- return ValueTask . CompletedTask ;
43- }
29+ public abstract ValueTask ReceiveAsync ( ReadOnlyMemory < byte > data , CancellationToken token = default ) ;
4430
4531 /// <summary>
4632 /// Handles the processing of a sticky package by adjusting the provided buffer and length.
Original file line number Diff line number Diff line change @@ -18,18 +18,6 @@ public interface IDataPackageHandler
1818 /// </summary>
1919 Func < ReadOnlyMemory < byte > , ValueTask > ? ReceivedCallBack { get ; set ; }
2020
21- /// <summary>
22- /// Sends the specified data asynchronously to the target destination.
23- /// </summary>
24- /// <remarks>The method performs an asynchronous operation to send the provided data. The caller must
25- /// ensure that the data is valid and non-empty. The returned memory block may contain a response or acknowledgment
26- /// depending on the implementation of the target destination.</remarks>
27- /// <param name="data">The data to be sent, represented as a block of memory.</param>
28- /// <param name="token">An optional <see cref="CancellationToken"/> to observe while waiting for the operation to complete.</param>
29- /// <returns>A task that represents the asynchronous operation. The task result contains a <see cref="Memory{T}"/> of <see
30- /// cref="byte"/> representing the response or acknowledgment received from the target destination.</returns>
31- ValueTask < ReadOnlyMemory < byte > > SendAsync ( ReadOnlyMemory < byte > data , CancellationToken token = default ) ;
32-
3321 /// <summary>
3422 /// Asynchronously receives data and processes it.
3523 /// </summary>
You can’t perform that action at this time.
0 commit comments