Click here to Skip to main content
15,888,162 members
Please Sign up or sign in to vote.
4.00/5 (3 votes)
See more:
so ive setup an n tier infrastructure for a social network site im building, I have the following 5 projects im going to use.

WEB - UI
BLL - Business Logic
Components - will be discovered from 'Interfaces using MEF
Interfaces - Plugins are discovered by Components using MEF
DAL - Data Access


so if im following this right, when a user requests something through WEB, its then passed on to BLL
BLL then grabs the data it needs from 'DAL' to work with whatever components it needs from 'Components'
Components then discovers the plugins it needs from 'Interfaces' using MEF

is that right..?


if it is right my referencing should be something like

WEB refs BLL
BLL refs Components, DAL
Components refs Interfaces, componentcompositionmodel
Interfaces refs componentcompositionmodel



any help on this one.?
Posted
Updated 29-Nov-11 21:43pm
v3
Comments
Dean Oliver 30-Jan-12 1:56am    
Your whole projects interfaces or contracts must be centralized around one key project. called infrastructure, contracts, interfaces. etc and this project must be referenced to all the projects that will be calling a MEF import. the concrete implementation of each export can be in any project you see fit.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900