C# Class Api.Controllers.CustomErrorActionResult

Inheritance: IHttpActionResult
Mostrar archivo Open project: os2indberetning/os2_app_webapi

Public Properties

Property Type Description
ErrorCode ErrorCodes
Status HttpStatusCode

Public Methods

Method Description
CustomErrorActionResult ( HttpRequestMessage request, string message, ErrorCodes errorCode, HttpStatusCode status ) : System
ExecuteAsync ( CancellationToken cancellationToken ) : Task
ExecuteResult ( ) : HttpResponseMessage

Method Details

CustomErrorActionResult() public method

public CustomErrorActionResult ( HttpRequestMessage request, string message, ErrorCodes errorCode, HttpStatusCode status ) : System
request System.Net.Http.HttpRequestMessage
message string
errorCode ErrorCodes
status HttpStatusCode
return System

ExecuteAsync() public method

public ExecuteAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

ExecuteResult() public method

public ExecuteResult ( ) : HttpResponseMessage
return System.Net.Http.HttpResponseMessage

Property Details

ErrorCode public_oe property

public ErrorCodes ErrorCode
return ErrorCodes

Status public_oe property

public HttpStatusCode Status
return HttpStatusCode