8 implementations of Length
Microsoft.AspNetCore.Hosting (2)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
264public long Length => 0; 288public long Length => _source.Length;
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
42public long Length => -1;
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedResourceFileInfo.cs (1)
47public long Length
Manifest\ManifestDirectoryInfo.cs (1)
32public long Length => -1;
Manifest\ManifestFileInfo.cs (1)
31public long Length => EnsureLength();
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalDirectoryInfo.cs (1)
43public long Length => -1;
PhysicalFileInfo.cs (1)
29public long Length => _info.Length;
15 references to Length
Microsoft.AspNetCore.Hosting (1)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
288public long Length => _source.Length;
Microsoft.AspNetCore.Http.Extensions (1)
SendFileResponseExtensions.cs (1)
89CheckRange(offset, count, file.Length);
Microsoft.AspNetCore.Http.Results (1)
VirtualFileHttpResult.cs (1)
114FileLength = fileInfo.Length;
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\VirtualFileResultExecutor.cs (1)
52fileInfo.Length,
Microsoft.AspNetCore.Rewrite (1)
UrlMatches\FileSizeMatch.cs (1)
16return fileInfo.Exists && fileInfo.Length > 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure;
Microsoft.AspNetCore.StaticAssets (8)
Development\StaticAssetDevelopmentRuntimeHandler.cs (8)
63if (fileInfo.Length != asset.GetContentLength() || TruncateToSeconds(fileInfo.LastModified) != asset.GetLastModified()) 218if (offset >= fileInfo.Length || (count.HasValue && offset + count.Value > fileInfo.Length)) 222_context.Response.GetTypedHeaders().ContentRange = new ContentRangeHeaderValue(fileInfo.Length); 228var actualCount = count.HasValue ? Math.Min(count.Value, fileInfo.Length - offset) : fileInfo.Length - offset; 236_context.Response.Headers.ContentLength = fileInfo.Length; 237return _original.SendFileAsync(fileInfo.PhysicalPath!, 0, fileInfo.Length, cancellationToken);
Microsoft.AspNetCore.StaticFiles (2)
HtmlDirectoryFormatter.cs (1)
181HtmlEncode(file.Length.ToString("n0", CultureInfo.CurrentCulture)),
StaticFileContext.cs (1)
120_length = _fileInfo.Length;