Mercurial > silverbladetech
view SSRS/SSRS.Web/Global.asax.cs @ 121:8f94475d3146 tip
final code
author | stevenh7776 |
---|---|
date | Thu, 31 May 2012 15:35:26 +0100 |
parents | e51a6af1c98d |
children |
line wrap: on
line source
using System; using System.Web; using Funq; using SSRS.Services; using SSRS.Services.DTO; 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(); } } }