示例#1
0
        internal void OnFileMetaTransfered()
        {
            if (Mode == StreamMode.GetHeader || Mode == StreamMode.GetFile)
            {
                parent.ThreadManager.Post(() => FileMetaReceived?.Invoke(this, null));
            }
            var args = new FTProgressEventArgs(0, FileMeta.Length);

            parent.ThreadManager.Post(() => Progress?.Invoke(this, args));
        }
示例#2
0
        internal void OnProgress()
        {
            var args = new FTProgressEventArgs(Stream.Position, FileMeta.Length);

            parent.ThreadManager.Post(() => Progress?.Invoke(this, args));
        }