/// <summary> /// 暂停一个文件发送;内部用的,它在别的状态的时候也可以暂停 /// </summary> /// <param name="state">FileState</param> /// <param name="SendMust">IFileSendMust</param> internal void FileStopIn(FileState state, IFileMustBase SendMust) { if (state.StateFile != 2) { state.StateFile = 2; SendMust.FileStop(state.FileLabel); } }
/// <summary> /// 对方暂停;我方也已经暂停;等待着对方的再一次请求传输;会在FileOrNotContingue这里触发 /// </summary> /// <param name="FileLabel">文件标签</param> public void FileStop(int FileLabel) { CommonMethod.eventInvoket(() => { fileMustBase.FileStop(FileLabel); }); }