annotate SSRS/SSRS.Web/Global.asax.cs @ 118:fa4ba8943048

final version
author stevenh7776
date Sun, 27 May 2012 19:53:23 +0100
parents e51a6af1c98d
children
rev   line source
112
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
1 using System;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
2 using System.Web;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
3 using Funq;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
4 using SSRS.Services;
114
e51a6af1c98d working version
adminsh@apollo
parents: 112
diff changeset
5 using SSRS.Services.DTO;
112
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
6 using ServiceStack.WebHost.Endpoints;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
7
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
8 namespace SSRS.Web
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
9 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
10 public class AppHost : AppHostBase
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
11 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
12 public AppHost() :
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
13 base("REST Services",
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
14 typeof(ReportsService).Assembly) {}
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
15
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
16 public override void Configure(Container container)
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
17 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
18 Routes.Add<ReportsRequest>("reports", "POST");
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
19 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
20 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
21
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
22 public class Global : HttpApplication
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
23 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
24 protected void Application_Start(object sender, EventArgs e)
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
25 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
26 new AppHost().Init();
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
27 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
28 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
29 }