diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SSRS/SSRS.Web/Global.asax.cs	Sat May 19 16:09:07 2012 +0100
@@ -0,0 +1,29 @@
+using System;
+using System.Web;
+using Funq;
+using SSRS.Services;
+using SSRS.Services.DTOs;
+using ServiceStack.WebHost.Endpoints;
+
+namespace SSRS.Web
+{
+    public class AppHost : AppHostBase
+    {
+        public AppHost() : 
+            base("REST Services", 
+            typeof(ReportsService).Assembly) {}
+
+        public override void Configure(Container container)
+        {
+            Routes.Add<ReportsRequest>("reports", "POST");
+        }
+    }
+
+    public class Global : HttpApplication
+    {
+        protected void Application_Start(object sender, EventArgs e)
+        {
+            new AppHost().Init();
+        }
+    }
+}
\ No newline at end of file