root/UnityWeb/UnityWeb/Modules/Unity/StructureMapRegistery.cs
| 80 | 82 | ||
|---|---|---|---|
22 | // hybrid uses httpcontext if available otherwise thread local storage | 22 | // hybrid uses httpcontext if available otherwise thread local storage |
23 | ForRequestedType<IEmployeeController>().TheDefaultIsConcreteType<EmployeeController>().CacheBy(InstanceScope.Hybrid); | 23 | ForRequestedType<IEmployeeController>().TheDefaultIsConcreteType<EmployeeController>().CacheBy(InstanceScope.Hybrid); |
24 | ForRequestedType<IEmployeeDataProvider>().TheDefaultIsConcreteType<EmployeeDataProvider>().CacheBy(InstanceScope.Hybrid); | 24 | ForRequestedType<IEmployeeDataProvider>().TheDefaultIsConcreteType<EmployeeDataProvider>().CacheBy(InstanceScope.Hybrid); |
25 | |||
26 | ForRequestedType<IProductDataProvider>().TheDefaultIsConcreteType<ProductDataProvider>().CacheBy(InstanceScope.Hybrid); | ||
27 | ForRequestedType<ICustomerDataProvider>().TheDefaultIsConcreteType<CustomerDataProvider>().CacheBy(InstanceScope.Hybrid); | ||
25 | 28 | ||
26 | //Business Conversation is per session | 29 | //Business Conversation is per session |
27 | ForRequestedType<IConversation>().TheDefaultIsConcreteType<Conversation>().CacheBy(InstanceScope.HttpSession); | 30 | ForRequestedType<IConversation>().TheDefaultIsConcreteType<Conversation>().CacheBy(InstanceScope.HttpSession); |
Download diff