Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
we have 3 Entities,such as Entity1,Entity2,Entity3;And 5 interfaces,such as Handler1,Handler2,Handler3,Handler4,Handler5;And 2 envirenment,such as E1,E2;we need use Handler1,Handler2,Handler3 to handler Entity1,use Handler4 to handler Entity2,use Handler5 to handler Entity3,and in different envirenment(E1/E2),the 5 interfaces have different implementation。

How to resolve this question?You can descript it by C#,or give a design diagram. Thanks.
Posted
Comments
dan!sh 12-Jan-15 5:16am    
Your question seems a bit unclear. Are you asking for someone to do the design for this kind of scenario?
gkpeng 12-Jan-15 20:34pm    
yes...
Sinisa Hajnal 12-Jan-15 5:47am    
Sounds like you have it well separated (except for H1, H2, H3 which possibly could be combined into single handler - depending on exact details)

Having different implementations shouldn't affect the system if you use interfaces properly. What is exactly your problem?
John C Rayan 27-Feb-15 6:46am    
Can you elaborate?

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