27 implementations of CreateReadStream
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\TestFileProvider\TestDirectoryContent.cs (1)
30public Stream CreateReadStream()
Builder\TestFileProvider\TestFileInfo.cs (1)
37public Stream CreateReadStream()
Builder\TestFileProvider\TestFileProvider.cs (1)
174public Stream CreateReadStream()
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
274public Stream CreateReadStream() => throw new InvalidOperationException("Can not create a stream for a directory."); 298public Stream CreateReadStream() => _source.CreateReadStream();
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
54 public Stream CreateReadStream()
Microsoft.AspNetCore.Components.WebView.Test (1)
StaticContentProviderTests.cs (1)
125public Stream CreateReadStream()
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
369public Stream CreateReadStream()
Microsoft.AspNetCore.Hosting (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
274public Stream CreateReadStream() => throw new InvalidOperationException("Can not create a stream for a directory."); 298public Stream CreateReadStream() => _source.CreateReadStream();
Microsoft.AspNetCore.Hosting.Tests (1)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
789public Stream CreateReadStream() => Stream.Null;
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestDirectoryContent.cs (1)
30public Stream CreateReadStream()
TestDirectoryFileInfo.cs (1)
20public Stream CreateReadStream()
TestFileInfo.cs (1)
37public Stream CreateReadStream()
TestFileProvider.cs (1)
174public Stream CreateReadStream()
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
572Stream IFileInfo.CreateReadStream() => throw new NotSupportedException();
Microsoft.AspNetCore.StaticFiles.Tests (2)
StaticFileContextTest.cs (2)
227public Stream CreateReadStream() 254public Stream CreateReadStream()
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
535public Stream CreateReadStream()
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
58public Stream CreateReadStream()
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedResourceFileInfo.cs (1)
81public Stream CreateReadStream()
Manifest\ManifestDirectoryInfo.cs (1)
44public Stream CreateReadStream() =>
Manifest\ManifestFileInfo.cs (1)
52public Stream CreateReadStream()
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestFileInfo.cs (1)
32public Stream CreateReadStream() => Stream.Null;
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalDirectoryInfo.cs (1)
66public Stream CreateReadStream()
PhysicalFileInfo.cs (1)
46public Stream CreateReadStream()
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
100public Stream CreateReadStream()
33 references to CreateReadStream
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitOptionsJavaScriptInitializersConfiguration.cs (1)
24var initializers = JsonSerializer.Deserialize<string[]>(file.CreateReadStream());
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
298public Stream CreateReadStream() => _source.CreateReadStream();
StaticContentProvider.cs (1)
72content = fileInfo.CreateReadStream();
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
172using (var reader = new StreamReader(fileInfo.CreateReadStream()))
Microsoft.AspNetCore.Hosting (2)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
172using (var reader = new StreamReader(fileInfo.CreateReadStream()))
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
298public Stream CreateReadStream() => _source.CreateReadStream();
Microsoft.AspNetCore.Http.Extensions (1)
SendFileResponseExtensions.cs (1)
90await using var fileContent = file.CreateReadStream();
Microsoft.AspNetCore.Http.Results.Tests (1)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
448nonDiskFileInfo.Setup(fi => fi.CreateReadStream()).Returns(sourceStream);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\VirtualFileResultExecutor.cs (1)
142return fileInfo.CreateReadStream();
Microsoft.AspNetCore.Mvc.Core.Test (1)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
448nonDiskFileInfo.Setup(fi => fi.CreateReadStream()).Returns(sourceStream);
Microsoft.AspNetCore.Mvc.Razor (1)
Infrastructure\DefaultFileVersionProvider.cs (1)
89using (var readStream = fileInfo.CreateReadStream())
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
FileProviderRazorProjectItem.cs (1)
95return FileInfo.CreateReadStream();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (5)
DefaultFileVersionProviderTest.cs (2)
177.Setup(m => m.CreateReadStream()) 308.Setup(m => m.CreateReadStream())
ImageTagHelperTest.cs (1)
366.Setup(m => m.CreateReadStream())
LinkTagHelperTest.cs (1)
1176.Setup(m => m.CreateReadStream())
ScriptTagHelperTest.cs (1)
1143.Setup(m => m.CreateReadStream())
Microsoft.AspNetCore.Rewrite (2)
ApacheModRewriteOptionsExtensions.cs (1)
26using (var stream = fileInfo.CreateReadStream())
IISUrlRewriteOptionsExtensions.cs (1)
31using (var stream = file.CreateReadStream())
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
172using (var reader = new StreamReader(fileInfo.CreateReadStream()))
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
321.CreateReadStream();
Microsoft.AspNetCore.StaticAssets (2)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
62using var stream = fileInfo.CreateReadStream(); 105using (var fileStream = fileInfo.CreateReadStream())
Microsoft.AspNetCore.StaticFiles.FunctionalTests (2)
FallbackStaticFileTest.cs (1)
128using (var stream = fileInfo.CreateReadStream())
StaticFileMiddlewareTests.cs (1)
167using (var stream = fileInfo.CreateReadStream())
Microsoft.AspNetCore.StaticFiles.Tests (5)
StaticFileMiddlewareTests.cs (5)
195using (var stream = fileInfo.CreateReadStream()) 234using (var stream = fileInfo.CreateReadStream()) 276using (var stream = fileInfo.CreateReadStream()) 326using (var stream = fileInfo.CreateReadStream()) 369using (var stream = fileInfo.CreateReadStream())
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
93return fileInfo.CreateReadStream();
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
94using var stream = file.CreateReadStream();
WsFedSample (1)
Program.cs (1)
48using (var certificateStream = certificateFileInfo.CreateReadStream())