view SSRS/SSRS.Web/Global.asax.cs @ 114:e51a6af1c98d

working version
author adminsh@apollo
date Sat, 19 May 2012 16:53:34 +0100
parents b9d5f934cb21
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();
        }
    }
}