27 implementations of Length
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\TestFileProvider\TestDirectoryContent.cs (1)
20public long Length => throw new NotSupportedException();
Builder\TestFileProvider\TestFileInfo.cs (1)
16public long Length { get; set; }
Builder\TestFileProvider\TestFileProvider.cs (1)
150public long Length
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
264public long Length => 0; 288public long Length => _source.Length;
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
48 public long Length { get; }
Microsoft.AspNetCore.Components.WebView.Test (1)
StaticContentProviderTests.cs (1)
115public long Length => _fileContents.Length;
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
345public long Length
Microsoft.AspNetCore.Hosting (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
264public long Length => 0; 288public long Length => _source.Length;
Microsoft.AspNetCore.Hosting.Tests (1)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
779public long Length { get; set; }
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestDirectoryContent.cs (1)
20public long Length => throw new NotSupportedException();
TestDirectoryFileInfo.cs (1)
10public long Length { get; set; }
TestFileInfo.cs (1)
16public long Length { get; set; }
TestFileProvider.cs (1)
150public long Length
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
568long IFileInfo.Length => throw new NotSupportedException();
Microsoft.AspNetCore.StaticFiles.Tests (2)
StaticFileContextTest.cs (2)
203public long Length 248public long Length { get; set; }
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
517public long Length => throw new NotImplementedException();
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.Embedded.Tests (1)
TestFileInfo.cs (1)
22public long Length => _isDirectory ? -1 : 0;
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalDirectoryInfo.cs (1)
43public long Length => -1;
PhysicalFileInfo.cs (1)
29public long Length => _info.Length;
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
94public long Length => -1;
36 references to Length
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
288public long Length => _source.Length;
Microsoft.AspNetCore.Hosting (1)
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.Http.Results.Tests (1)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
511fileInfo.SetupGet(fi => fi.Length).Returns(33);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\VirtualFileResultExecutor.cs (1)
52fileInfo.Length,
Microsoft.AspNetCore.Mvc.Core.Test (1)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
511fileInfo.SetupGet(fi => fi.Length).Returns(33);
Microsoft.AspNetCore.Rewrite (1)
UrlMatches\FileSizeMatch.cs (1)
16return fileInfo.Exists && fileInfo.Length > 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure;
Microsoft.AspNetCore.StaticAssets (3)
Development\StaticAssetDevelopmentRuntimeHandler.cs (3)
45if (fileInfo.Length != asset.GetContentLength() || fileInfo.LastModified != asset.GetLastModified()) 131_context.Response.Headers.ContentLength = fileInfo.Length; 135return _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;
Microsoft.AspNetCore.StaticFiles.FunctionalTests (2)
StaticFileMiddlewareTests.cs (2)
164Assert.True(response.Content.Headers.ContentLength == fileInfo.Length); 206Assert.True(response.Content.Headers.ContentLength == fileInfo.Length);
Microsoft.AspNetCore.StaticFiles.Tests (6)
StaticFileMiddlewareTests.cs (6)
191Assert.True(response.Content.Headers.ContentLength == fileInfo.Length); 230Assert.True(response.Content.Headers.ContentLength == fileInfo.Length); 272Assert.True(response.Content.Headers.ContentLength == fileInfo.Length); 322Assert.True(response.Content.Headers.ContentLength == fileInfo.Length); 365Assert.True(response.Content.Headers.ContentLength == fileInfo.Length); 483Assert.True(response.Content.Headers.ContentLength == fileInfo.Length);
Microsoft.Extensions.FileProviders.Embedded.Tests (15)
EmbeddedFileProviderTests.cs (4)
52Assert.Equal(expectedFileLength, fileInfo.Length); 118Assert.True(fileInfo.Length > 0); 156Assert.True(fileInfo.Length > 0); 194Assert.True(fileInfo.Length > 0);
FileInfoComparer.cs (2)
27x.Length == y.Length &&
ManifestEmbeddedFileProviderTests.cs (9)
33Assert.Equal(0, jqueryValidate.Length); 40Assert.Equal(0, jqueryMin.Length); 47Assert.Equal(0, siteCss.Length); 70Assert.Equal(0, jqueryValidate.Length); 77Assert.Equal(0, jqueryMin.Length); 84Assert.Equal(0, siteCss.Length); 169Assert.Equal(0, jqueryValidate.Length); 192Assert.Equal(0, jqueryValidate.Length); 443Assert.Equal(0, jqueryValidate.Length);