C# Class Nancy.Response

Inheritance: IDisposable
Afficher le fichier Open project: NancyFx/Nancy Class Usage Examples

Méthodes publiques

Свойство Type Description
NoBody Action

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

This method can be overridden in sub-classes to dispose of response specific resources.

PreExecute ( Nancy.NancyContext context ) : System.Threading.Tasks.Task

Executes at the end of the nancy execution pipeline and before control is passed back to the hosting. Can be used to pre-render/validate views while still inside the main pipeline/error handling.

Response ( ) : System

Initializes a new instance of the Response class.

Méthodes protégées

Méthode Description
GetStringContents ( string contents ) : Action

Converts a string content value to a response action.

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
This method can be overridden in sub-classes to dispose of response specific resources.
public Dispose ( ) : void
Résultat void

GetStringContents() protected static méthode

Converts a string content value to a response action.
protected static GetStringContents ( string contents ) : Action
contents string The string containing the content.
Résultat Action

PreExecute() public méthode

Executes at the end of the nancy execution pipeline and before control is passed back to the hosting. Can be used to pre-render/validate views while still inside the main pipeline/error handling.
public PreExecute ( Nancy.NancyContext context ) : System.Threading.Tasks.Task
context Nancy.NancyContext Nancy context
Résultat System.Threading.Tasks.Task

Response() public méthode

Initializes a new instance of the Response class.
public Response ( ) : System
Résultat System

Property Details

NoBody public_oe static_oe property

Null object representing no body
public static Action NoBody
Résultat Action