一款简单易用的基础网络通讯组件库。

IDmtpFileTransferActorPushFileSectionAsync(FileResourceLocator, FileSection, Int32, CancellationToken) 方法

推送文件块。

注意:推送文件块时,两个成功块之间的时间应该在设定时间(60秒)内完成。

Definition

命名空间: TouchSocket.Dmtp.FileTransfer
程序集: TouchSocket.Dmtp (在 TouchSocket.Dmtp.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
Task<Result> PushFileSectionAsync(
	FileResourceLocator fileResourceLocator,
	FileSection fileSection,
	int millisecondsTimeout = 5000,
	CancellationToken token = default
)

参数

fileResourceLocator  FileResourceLocator
文件资源定位器
fileSection  FileSection
文件块
millisecondsTimeout  Int32  (Optional)
超时设置
token  CancellationToken  (Optional)
可取消令箭

返回值

TaskResult

[缺少 "M:TouchSocket.Dmtp.FileTransfer.IDmtpFileTransferActor.PushFileSectionAsync(TouchSocket.Dmtp.FileTransfer.FileResourceLocator,TouchSocket.Dmtp.FileTransfer.FileSection,System.Int32,System.Threading.CancellationToken)" 的 <returns> 文档]

参见