-
Notifications
You must be signed in to change notification settings - Fork 446
Expand file tree
/
Copy pathBootstrapConfig.cs
More file actions
29 lines (27 loc) · 829 Bytes
/
BootstrapConfig.cs
File metadata and controls
29 lines (27 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using Castle.Windsor;
using eCommerce.WebService.App_Start.Installers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Http.Dispatcher;
using System.Web.Mvc;
namespace eCommerce.WebService.App_Start
{
public class BootstrapConfig
{
public static void Register(IWindsorContainer container)
{
GlobalConfiguration.Configuration.Services.Replace(
typeof(IHttpControllerActivator),
new WindsorCompositionRoot(container));
container.Install(
new InfrastructureLayerInstall(),
new ApplicationLayerInstall(),
new DomainModelLayerInstall(),
new DistributedInterfaceLayerInstall()
);
}
}
}