C# Class Owin.BufferContentIntoAMemoryStreamMiddleware

Due to the way that Nancy handles self-hosting environments, this forces uploaded files to be prematurely read into memory before continuing the owin pipeline execution.
Inheritance: Microsoft.Owin.OwinMiddleware
Show file Open project: dealproc/Drey

Public Methods

Method Description
BufferContentIntoAMemoryStreamMiddleware ( Microsoft.Owin.OwinMiddleware next ) : Microsoft.Owin
Invoke ( IOwinContext context ) : System.Threading.Tasks.Task

Process an individual request.

Private Methods

Method Description
ReadFully ( Stream input ) : byte[]

Method Details

BufferContentIntoAMemoryStreamMiddleware() public method

public BufferContentIntoAMemoryStreamMiddleware ( Microsoft.Owin.OwinMiddleware next ) : Microsoft.Owin
next Microsoft.Owin.OwinMiddleware
return Microsoft.Owin

Invoke() public method

Process an individual request.
public Invoke ( IOwinContext context ) : System.Threading.Tasks.Task
context IOwinContext
return System.Threading.Tasks.Task