当前位置:网站首页>WCF Foundation

WCF Foundation

2022-07-07 01:38:00 Full stack programmer webmaster

Hello everyone , I meet you again , I'm the king of the whole stack

Concept :

Windows CommunicationFoundation(WCF) Is a set of data communication application development interface developed by Microsoft . It can be translated into Windows communication interface . It is .NET Part of the frame .

In short ,WCF It's the one with Microsoft VS A communication interface provided in . Through this interface, independent modules can be integrated , Make a system .

It fully embodies the idea of service-oriented development .

advantage :

1. Unity .

2. Interoperability .

3. Safe and reliable .

4. Compatibility

Take an inappropriate example to briefly explain :

For example, there is a 、 B 、 C three companies , And every company has A、B、C Three systems to handle company affairs .

Now the three companies will merge into one company . So we need to A、B、C The resources of the three systems are integrated . Then you need a serverD, By using WCF Come and A、B、C The three systems communicate with each other , Mutual visits .

in fact .WCF Is to act as an intermediary , Or an agreement , Just want everyone to follow this agreement , Then you can communicate freely . Just like people , Just want everyone to speak Chinese , I have been able to communicate for so long , But suppose one speaks bird language ( Japanese ), One speaks Chinese . The two of them can only fight ~

The following is a detailed display , stay VS Detailed operations in :

After creating the WCF In the framework IService Interface and Service Add detailed operations to the service .

The code here is simple HelloWorld. So a simple screenshot .

published WCF service :

stay client(form) Add detailed operation code :

Summary : All of the above are WCF The most basic content in . First contact with this knowledge , Deepen understanding , Please give me some advice .

Copyright notice : This article is the original article of the blogger , Blog , Do not reprint without permission .

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116911.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207061756041627.html