Somehow missed this with earlier checkin of fluent interface.
[castle.git] / Experiments / Castle.Igloo / Igloo.Clinic.Web / Web.config
blob314dd77ad784c058eec2285871e743c8974d6b75
1 <?xml version="1.0"?>
3 <configuration>
5 <configSections>
6 <section name="castle" type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor" />
7 <section name="igloo" type="Castle.Igloo.Configuration.ConfigurationSectionHandler, Castle.Igloo"/>
8 </configSections>
10 <castle>
11 <facilities>
12 <facility id="IgluFacility" type="Castle.Igloo.IglooFacility, Castle.Igloo" >
13 <assembyView>Igloo.Clinic.Web</assembyView>
14 </facility>
15 </facilities>
17 <components>
18 <!-- Igloo components -->
20 <component id="XmlWebViewManager"
21 service="Castle.Igloo.UI.IViewManager, Castle.Igloo"
22 type="Castle.Igloo.UI.Web.XmlWebViewManager, Castle.Igloo" />
24 <component id="ConversationManager"
25 service="Castle.Igloo.Scopes.IConversationManager, Castle.Igloo"
26 type="Castle.Igloo.Scopes.Web.WebConversationManager, Castle.Igloo" />
28 <component id="GraphNavigator"
29 service="Castle.Igloo.Navigation.INavigator, Castle.Igloo"
30 type="Castle.Igloo.Navigation.GraphNavigator, Castle.Igloo" />
32 <!-- Controllers -->
33 <component id="Login.Controller" type="Igloo.Clinic.Application.LoginController, Igloo.Clinic.Application" />
34 <component id="Patient.Controller" type="Igloo.Clinic.Application.PatientController, Igloo.Clinic.Application" />
35 <component id="Drug.Controller" type="Igloo.Clinic.Application.DrugController, Igloo.Clinic.Application" />
37 <!-- Services -->
38 <component id="Service.Authentification"
39 type="Igloo.Clinic.Services.Impl.ServiceAuthentification, Igloo.Clinic.Services"
40 service="Igloo.Clinic.Services.Interfaces.IServiceAuthentification, Igloo.Clinic.Services"
41 scope="Singleton" />
42 <component id="Service.Patient"
43 type="Igloo.Clinic.Services.Impl.PatientService, Igloo.Clinic.Services"
44 service="Igloo.Clinic.Services.Interfaces.IPatientService, Igloo.Clinic.Services"/>
46 <!--- Cart -->
47 <component id="Cart"
48 type="Igloo.Clinic.Domain.Cart, Igloo.Clinic.Domain"
49 service="Igloo.Clinic.Domain.ICart, Igloo.Clinic.Domain"
50 scope="Request" proxyScope="true"/>
51 </components>
52 </castle>
54 <igloo>
55 <webViews>
56 <view id="login" path="/views/login.aspx" />
57 <view id="register" path="/views/register.aspx" />
58 <view id="index" path="/views/index.aspx" />
59 <view id="drug" path="/views/drug.aspx" />
60 </webViews>
62 <global-actions>
63 <action id="logout" view="login" />
64 </global-actions>
66 <action-mappings>
67 <actions view="login">
68 <action id="login" view="index" />
69 </actions>
70 <actions view="register">
71 <action id="register" view="login" />
72 </actions>
73 <actions view="index">
74 <action id="searchDrug" view="drug" />
75 </actions>
76 </action-mappings>
77 </igloo>
79 <appSettings/>
80 <connectionStrings/>
82 <system.web>
83 <!--
84 Set compilation debug="true" to insert debugging
85 symbols into the compiled page. Because this
86 affects performance, set this value to true only
87 during development.
88 -->
89 <compilation debug="true" />
90 <!--
91 The <authentication> section enables configuration
92 of the security authentication mode used by
93 ASP.NET to identify an incoming user.
94 -->
96 <httpModules>
97 <add name="ScopeLifestyleModule" type="Castle.Igloo.LifestyleManager.ScopeLifestyleModule, Castle.Igloo" />
98 </httpModules>
100 <authentication mode="Windows" />
101 <!--
102 The <customErrors> section enables configuration
103 of what to do if/when an unhandled error occurs
104 during the execution of a request. Specifically,
105 it enables developers to configure html error pages
106 to be displayed in place of a error stack trace.
108 <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
109 <error statusCode="403" redirect="NoAccess.htm" />
110 <error statusCode="404" redirect="FileNotFound.htm" />
111 </customErrors>
113 <sessionState timeout="1">
115 </sessionState>
116 <trace enabled="true" />
118 </system.web>
119 </configuration>