Exemplo n.º 1
0
 public Redirect(string location, int code)
 {
     redirect = new AdHocRepresentation(c => { c.Response.RedirectLocation = location; c.Response.StatusCode = code; });
 }
Exemplo n.º 2
0
 public override Representation GetRepresentation(HttpContextEx context)
 {
     return(Representation.Create(this));
 }
Exemplo n.º 3
0
 public Found(string location)
 {
     redirect = new AdHocRepresentation(c => { c.Response.AddHeader("Location", location); c.Response.StatusCode = 302; });
 }