开发者

Services and WPF

开发者 https://www.devze.com 2022-12-19 03:25 出处:网络
This is a general technologies question. I am building a Media Player for a school project. It is written in C# 开发者_如何学编程and uses WPF for the interface. I am adding a service to it to maintai

This is a general technologies question.

I am building a Media Player for a school project. It is written in C# 开发者_如何学编程and uses WPF for the interface. I am adding a service to it to maintain the database as the user makes changes to it. I also want it to contain the config class I built in a previous iteration which is the subject in the observer design pattern. However I have no idea what would be the best way to communicate between the service and the interface pieces of the application. I have seen many ways to do this and I would like some advice about which of the myriad .NET technologies for communicating between services/processes/etc you would recommend.


WCF is Microsoft's recommended way for applications to communicate.

  • Between applications on the same machine, use the Named Pipes binding.
  • Between applications in the same company, use the TCP binding.
  • Between applications across the internet, use the Web Service binding.

EDIT: Heck, even if you weren't using .NET the Named Pipes, TCP, Web Service trillogy is still your default list.

0

精彩评论

暂无评论...
验证码 换一张
取 消