Table of Contents

Class InternalServerErrorResult

Namespace
System.Web.Http.Results
Assembly
System.Web.Http.dll

Represents an action result that returns an empty InternalServerError response.

public class InternalServerErrorResult : IHttpActionResult
Inheritance
InternalServerErrorResult
Implements
Inherited Members

Constructors

InternalServerErrorResult(HttpRequestMessage)

Initializes a new instance of the InternalServerErrorResult class.

public InternalServerErrorResult(HttpRequestMessage request)

Parameters

request HttpRequestMessage

The request message which led to this result.

InternalServerErrorResult(ApiController)

Initializes a new instance of the InternalServerErrorResult class.

public InternalServerErrorResult(ApiController controller)

Parameters

controller ApiController

The controller from which to obtain the dependencies needed for execution.

Properties

Request

Gets the request message which led to this result.

public HttpRequestMessage Request { get; }

Property Value

HttpRequestMessage

Returns HttpRequestMessage.

Methods

ExecuteAsync(CancellationToken)

public virtual Task<HttpResponseMessage> ExecuteAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<HttpResponseMessage>

Returns Task<TResult>.