1

I have a separate WCF project and it is hosted in IIS. Now I want to consume it in my MVC application. I want a clean architecture.

My approach is - I am generating proxies inside MVC application in a folder called proxies. Is it cleaner or better I should create a separate class library from proxies and reference class library inside MVC application?

Please suggest cleaner approach?

1 Answer 1

1

I would put the client proxies into a separate assembly (class library) and reference that project from the MVC project. In general I think its good practice to have assembly separation for the entire WCF implementation.

Specifically, I would have separate assemblies for the following components:

  • Service and data contracts
  • Services
  • Business/ORM engines etc
  • Service hosts
  • Client proxies
  • Client applications
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.