public interface IDmtpChannel : IDisposable,
IEnumerable<ByteBlock>, IEnumerable, IAsyncEnumerable<ByteBlock>
Public Interface IDmtpChannel
Inherits IDisposable, IEnumerable(Of ByteBlock), IEnumerable,
IAsyncEnumerable(Of ByteBlock)
type IDmtpChannel =
interface
interface IDisposable
interface IEnumerable<ByteBlock>
interface IEnumerable
interface IAsyncEnumerable<ByteBlock>
end
Available | 具有可读数据的条目数 |
CanMoveNext | 判断当前通道能否调用MoveNext |
CanWrite | 能否写入 |
Id | 通道Id |
LastOperationMes | 最后一次操作时显示消息 |
LastOperationTime | 获取上次操作的时间。 |
MaxSpeed | 通道传输速度限制 |
Metadata | 元数据 |
Status | 状态 |
TargetId | 目的Id地址。仅当该通道由两个客户端打通时有效。 |
Timeout | 超时时间,默认1000*10ms。 |
Using | 是否被使用 |
CancelAsync | 异步取消操作 |
CompleteAsync | 异步完成操作 |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (继承自 IDisposable。) |
GetAsyncEnumerator | Returns an enumerator that iterates asynchronously through the collection. (继承自 IAsyncEnumerableByteBlock。) |
GetCurrent | 获取当前的有效数据。在使用之后,请进行显式的Dispose调用。 |
GetEnumerator | Returns an enumerator that iterates through the collection. (继承自 IEnumerableByteBlock。) |
HoldOnAsync |
异步调用继续
调用该指令时,接收方会跳出接收,但是通道依然可用,所以接收方需要重新调用MoveNext |
MoveNext | 转向下个元素 |
MoveNextAsync | 转向下个元素 |
WriteAsync | 异步写入通道 |
ForEachByteBlock |
循环遍历每个元素,执行Action动作
(由 CollectionsExtension 定义。) |
ForEachAsyncByteBlock |
循环遍历每个元素,执行异步动作
(由 CollectionsExtension 定义。) |
MapListByteBlock, T1 | (由 Mapper 定义。) |
SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。) |