Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipmat/enumerablestreamfileresult
Example of efficiently writing an IEnumerable to a FileResult
https://github.com/philipmat/enumerablestreamfileresult
Last synced: about 1 month ago
JSON representation
Example of efficiently writing an IEnumerable to a FileResult
- Host: GitHub
- URL: https://github.com/philipmat/enumerablestreamfileresult
- Owner: philipmat
- License: mit
- Created: 2018-11-20T01:28:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T07:52:31.000Z (7 months ago)
- Last Synced: 2024-05-28T18:11:55.302Z (7 months ago)
- Language: HTML
- Homepage: http://philipm.at/2018/enumerablefilestreamer.html
- Size: 934 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EnumerableStreamFileResult
Example of efficiently writing an `IEnumerable` to a `FileResult`.
The `EnumerableFileResult` class can be initialized
with an `IEnumerable` and when executed by the
ASP.NET Core pipeline in enumerates through the
enumerable and using a custom adapter, `IStreamWritingAdapter`,
writes each item to the response stream (`HttpContext.Response.Body`).More details and reasoning at: http://philipm.at/2018/enumerablefilestreamer.html