FubarDev.FtpServer.FileSystem.OneDrive.OneDriveFileSystem.DownloadFinished C# (CSharp) 메소드

DownloadFinished() 개인적인 메소드

private DownloadFinished ( Item item ) : void
item Item
리턴 void
        internal void DownloadFinished(Item item)
        {
            _cache.Set(GetFileId(item), item, _defaultCacheTimeSpan);
        }

Usage Example

예제 #1
0
        public override int Read(byte[] buffer, int offset, int count)
        {
            var readCount = _responseStream.Read(buffer, offset, count);

            _position += readCount;
            if (readCount == 0)
            {
                _fileSystem.DownloadFinished(_item);
            }
            return(readCount);
        }