C# Class NSinatra.NSinatraBase

Inheritance: IHttpHandler
Mostrar archivo Open project: carlhoerberg/NSinatra

Public Methods

Method Description
Content ( string content ) : StringResult
Get ( string route, ActionResult>.Func action ) : void
NHaml ( string templateName ) : NHamlResult
NHaml ( string templateName, object viewData ) : NHamlResult
Post ( string route, ActionResult>.Func action ) : void
ProcessRequest ( HttpContext context ) : void
Redirect ( string url, bool permanent = false ) : RedirectResult

Private Methods

Method Description
AddFormAndQueryStringParameters ( object>.IDictionary parameters, System.Web.HttpRequestBase request ) : void
GetActionResult ( string verb, string url, object>.IDictionary parameters ) : ActionResult

Method Details

Content() public method

public Content ( string content ) : StringResult
content string
return NSinatra.ActionResults.StringResult

Get() public method

public Get ( string route, ActionResult>.Func action ) : void
route string
action ActionResult>.Func
return void

NHaml() public method

public NHaml ( string templateName ) : NHamlResult
templateName string
return NSinatra.ActionResults.NHamlResult

NHaml() public method

public NHaml ( string templateName, object viewData ) : NHamlResult
templateName string
viewData object
return NSinatra.ActionResults.NHamlResult

Post() public method

public Post ( string route, ActionResult>.Func action ) : void
route string
action ActionResult>.Func
return void

ProcessRequest() public method

public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext
return void

Redirect() public method

public Redirect ( string url, bool permanent = false ) : RedirectResult
url string
permanent bool
return NSinatra.ActionResults.RedirectResult