StreamOutputFormatter Class

Summary

Always copies the stream to the response, regardless of requested content type.

Syntax

public class StreamOutputFormatter : IOutputFormatter

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.StreamOutputFormatter

Methods

CanWriteResult(Microsoft.AspNet.Mvc.OutputFormatterContext, MediaTypeHeaderValue)
Arguments:
Return type:

System.Boolean

public bool CanWriteResult(OutputFormatterContext context, MediaTypeHeaderValue contentType)
WriteAsync(Microsoft.AspNet.Mvc.OutputFormatterContext)
Arguments:
Return type:

System.Threading.Tasks.Task

public Task WriteAsync(OutputFormatterContext context)