comparison SSRS/SSRS.Web/Global.asax.cs @ 112:b9d5f934cb21

Initial upload
author adminsh@apollo
date Sat, 19 May 2012 16:09:07 +0100
parents
children e51a6af1c98d
comparison
equal deleted inserted replaced
111:6cb8cd05ad6b 112:b9d5f934cb21
1 using System;
2 using System.Web;
3 using Funq;
4 using SSRS.Services;
5 using SSRS.Services.DTOs;
6 using ServiceStack.WebHost.Endpoints;
7
8 namespace SSRS.Web
9 {
10 public class AppHost : AppHostBase
11 {
12 public AppHost() :
13 base("REST Services",
14 typeof(ReportsService).Assembly) {}
15
16 public override void Configure(Container container)
17 {
18 Routes.Add<ReportsRequest>("reports", "POST");
19 }
20 }
21
22 public class Global : HttpApplication
23 {
24 protected void Application_Start(object sender, EventArgs e)
25 {
26 new AppHost().Init();
27 }
28 }
29 }