view 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 source

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();
        }
    }
}