Skip to content

philipmat/EnumerableStreamFileResult

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

EnumerableStreamFileResult

Example of efficiently writing an IEnumerable to a FileResult.

The EnumerableFileResult<T> class can be initialized with an IEnumerable<T> and when executed by the ASP.NET Core pipeline in enumerates through the enumerable and using a custom adapter, IStreamWritingAdapter<T>, writes each item to the response stream (HttpContext.Response.Body).

More details and reasoning at: http://philipm.at/2018/enumerablefilestreamer.html

About

Example of efficiently writing an IEnumerable to a FileResult

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published