如何集成两个应用程序. [英] How to integrate two application.

查看:80
本文介绍了如何集成两个应用程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有两个应用程序,两个都有各自的数据库,并且分别运行良好.现在,我想将两个应用程序集成在一起.
我该怎么办?
在此先感谢您.

Hi All,
I have two application,both have their seperate database and running fine individually. now I want to integrate the two application.
How can I do this??
Thanks in advance.

推荐答案

这将很大程度上取决于您编写这两个应用程序的情况.
如果您做得很好,并且将这两个应用程序设计为行为良好且模块化,那么可能还不错.另一方面,如果您抓住每一个机会的捷径,那很可能是一场噩梦.

在不知道您的代码的情况下,实际上是不可能说出来的.尝试一下:备份所有内容,创建一个新的解决方案,然后向其中添加两个项目.看看会发生什么!
It is going to depend - a lot - on how well you wrote the two applications.
If you did a good job, and designed the two apps to be well-behaved and modular, then it may not be too bad. If, on the other hand, you took shortcuts at every opportunity, then it could well be a nightmare.

Without knowing your code, it is not really possible to say. Try it: Back everything up, create a new solution, and add the two projects to it. See what happens!


有很多方法可以做到这一点.
看看msdn上的WCF-根据您的方便可以使用多种协议.
您还可以设置两者之间的套接字通信.

还有其他方法-但是这两种方法应该足以让您入门.
There are a number of ways to do this.
Have a look at WCF on msdn - there are a number of protocols you could use based on your convenience.
You could also setup socket communication between the two.

There are other ways as well - but those two approaches should be sufficient to get you started.


这篇关于如何集成两个应用程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆