Table of Contents

Class ActionFileResult

Namespace
BpNexT.Actions.Abstractions
Assembly
BpNexT.Actions.Abstractions.dll

Return type for actions whose HTTP response is a file instead of JSON (e.g. images). The content is buffered; outside an HTTP request the result serializes like any payload.

public sealed class ActionFileResult
Inheritance
object
ActionFileResult
Inherited Members
object.Equals(object)
object.GetHashCode()
object.ToString()

Properties

Content

The file bytes.

ContentType

MIME type of the content, e.g. image/png.

FileName

File name suggested to the caller; null leaves it to the client.