- bizapp_src.zip
- BizApp
- BizApp.Controls
- BizApp.Services.Server
- BizApp.Services
- BizApp.sln
- BizApp.vsmdi
- BizApp.Web
- BizApp
- LocalTestRun.testrunconfig
- Tests
- BizApp.Services.Test
- Unity Application Block
- Microsoft.Practices.Unity.Configuration.dll
- Microsoft.Practices.Unity.dll
|
using System;
using System.Web.DomainServices;
using BizApp.Services.Server;
using BizApp.Services.Server.DomainServices;
using BizApp.Services.Server.Models;
namespace BizApp.Web
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
// Create data context for all services
AppDatabaseDataContext dataContext = new AppDatabaseDataContext();
// Configure unity container
DependencyInjectionProvider.Configure((System.Data.Linq.DataContext)dataContext);
// Set new domain service factory, creating domain services
DomainService.Factory = new DomainServiceFactory();
}
protected void Session_Start(object sender, EventArgs e)
{
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
}
protected void Session_End(object sender, EventArgs e)
{
}
protected void Application_End(object sender, EventArgs e)
{
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Jevgenij lives in Riga, Latvia. He started his programmer's career in 1983 developing software for radio equipment CAD systems. Created computer graphics for TV. Developed Internet credit card processing systems for banks.
Now he is System Analyst in Accenture.