ASP.NET MVC and WCF

后端 未结 4 908
野性不改
野性不改 2021-01-29 23:22

I\'m working my way into MVC at the moment, but on my \"To learn at some point\" list, I also have WCF.

I just wonder if WCF is something that should/could be used in an

4条回答
  •  [愿得一人]
    2021-01-29 23:52

    WCF services might make sense in this situation, but don't create services that align with your UI, create services that align with the business processes. ie. you won't have a service that returns the view data for each page, you will have a service that exposes logical operations. Then, your site can call the same services that the windows client calls, but you don't have to couple the design of the windows client to the design of the web site.

    Instead of this:

    Windows Client -> Services -> Web Site

    It should be:

    Windows Client -> Services

    Web Site -> Services

提交回复
热议问题