i have been developed my last project like below as by last architecture
View -> Controller -> Service Code -> Repository with DDD(Model)
Now i want to use WF and WCF?where are they to be on my last architecture?please tell me show me an example.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mostly I organize my projects as follows:
More information about this kind of structure could be found at Arc wiki
All service interfaces and domain entities goes to Core project. Services project contains implementation of Application Services. Contollers and View Models are in Presentation project. If my controller needs a service I reference it’s interface in Controller’s constructor and wire it to real implementation via IoC/DI container.
Workflows won’t contain only business logic, so I encapsulate business logic as small services/commands and call them from workflows. That leaves workflows to Services project.
WCF services implementations should be in Services project and interfaces in Core.
This way it should look like Controller > Service > Workflow > Uses other services to get a result.
For WCF services it’s needed to configure endpoint and it should look Service > Workflow > Uses other services to get a result.