Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0d5442a5ef
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (27 sloc) 0.706 kb
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Sandbox
{
using System.Threading.Tasks;
using Simple.Web;
using Simple.Web.Behaviors;
[UriTemplate("/")]
public class GetIndex : IGetAsync, IOutput<RawHtml>
{
public Task<Status> Get()
{
return DoLongRunningThing()
.ContinueWith(t => Status.OK);
}
public RawHtml Output
{
get { return "<h2>Simple.Web is making your life easier.</h2>"; }
}
private Task DoLongRunningThing()
{
return Task.Factory.StartNew(() => { });
}
}
}
Jump to Line
Something went wrong with that request. Please try again.