C# Class CustomActionResult, code

Customized ActionResult that allows easily setting HttpStatusCode and data result object to be returned for a request.
Inheritance: ActionResult
Afficher le fichier Open project: shendongnian/code Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CustomActionResult ( ) : Microsoft.AspNetCore.Mvc

Parameterless contructor that initializes the ActionResult with HttpStatusCode.OK as the default Response Code.

CustomActionResult ( HttpStatusCode, statusCode ) : Microsoft.AspNetCore.Mvc

Constructor that initializes the ActionResult with a specified HttpStatusCode

CustomActionResult ( HttpStatusCode, statusCode, string message ) : Microsoft.AspNetCore.Mvc

Constructor that initializes the ActionResult with a specified HttpStatusCode

ExecuteResult ( ActionContext, context ) : void
GetBuffer ( ) : byte[]

Method Details

CustomActionResult() public méthode

Parameterless contructor that initializes the ActionResult with HttpStatusCode.OK as the default Response Code.
public CustomActionResult ( ) : Microsoft.AspNetCore.Mvc
Résultat Microsoft.AspNetCore.Mvc

CustomActionResult() public méthode

Constructor that initializes the ActionResult with a specified HttpStatusCode
public CustomActionResult ( HttpStatusCode, statusCode ) : Microsoft.AspNetCore.Mvc
statusCode HttpStatusCode, /// Http response code to set for this ActionResult. ///
Résultat Microsoft.AspNetCore.Mvc

CustomActionResult() public méthode

Constructor that initializes the ActionResult with a specified HttpStatusCode
public CustomActionResult ( HttpStatusCode, statusCode, string message ) : Microsoft.AspNetCore.Mvc
statusCode HttpStatusCode, /// Http response code to set for this ActionResult. ///
message string Reason phrase
Résultat Microsoft.AspNetCore.Mvc

ExecuteResult() public méthode

public ExecuteResult ( ActionContext, context ) : void
context ActionContext,
Résultat void

GetBuffer() public méthode

public GetBuffer ( ) : byte[]
Résultat byte[]