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

final version
author stevenh7776
date Sun, 27 May 2012 19:53:23 +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();
        }
    }
}