Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: cf6dcd8c94
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.446 kB
using System.Web.Hosting;
namespace WebBackgrounder {
public class AspNetTaskHost : IJobHost, IRegisteredObject {
public AspNetTaskHost() {
HostingEnvironment.RegisterObject(this);
}
public bool ShuttingDown {
get;
private set;
}
public void Stop(bool immediate) {
lock (this) {
ShuttingDown = true;
}
}
}
}
Jump to Line
Something went wrong with that request. Please try again.