将聊天嵌入到现有桌面用户启用的 .NET 应用程序中?

发布于 2024-07-27 17:38:22 字数 273 浏览 2 评论 0原文

我正在构建一个 win 应用程序,它对 sql 数据库具有用户访问控制,所有数据也存储在该数据库中。 这个项目要安装在一个站点的30-40台机器上(我的意思是说它不是Web,它都在一个地方,最多称之为Intranet)。

我希望在程序登录时,登录用户应该能够与其他登录用户聊天。

C# 和 C# 中的任何推荐方法 VB? 我将不胜感激任何想法、链接或提示。

请与我分享你的经验 谢谢!

注意:如果重要的话,该程序是 Wpf 格式的。

I am builing a win application that has user access control against a sql db, all the data is stored in this db as well.
This project is to be installed in one site on 30-40 machines (I mean to say that it's not web, it's all in one place, maximum call it intranet).

I want that while the program is logged on, the logged-in user should be able to chat to the other logged in users.

Any recommended approaches in C# & VB?
I would appreciate any idea, link or tip.

Please share me with your experience
Thanks!

NOTE: The program is in Wpf if it does matter.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥抱我好吗 2024-08-03 17:38:22

从架构上讲,发布者-订阅者消息总线似乎是一个适合你的好模式。 您将拥有一个集中式服务器,每个客户端都可以向该服务器注册,该服务器将通知从发布者分发到订阅者。

每个客户将在开始时注册以获取客户列表的通知。 每个客户端都可以注册有兴趣在另一个客户端发布消息时收到通知。 每个客户端都会将消息发布到总线,以传递给该客户端的任何订阅者。

MSDN 中有一个用 WCF 编写的发布-订阅消息总线的好示例: WCF 要点 您需要了解的有关单向调用、回调和事件的信息。 您可以相当快地启动并运行它。

Architecturally, it seems like a publisher-subscriber message bus would be a good pattern for you. You would have a centralized server that each client would register with that will distribute notifications from publishers to subscribers.

Each client will register for notification of the client list upon starting. Each client can register interest in being notified when another client publishes a message. Each client would publish messages to the bus to be delivered to any subscribers for that client.

There is a good example of a pub-sub message bus written in WCF in MSDN: WCF ESSENTIALS What You Need To Know About One-Way Calls, Callbacks, And Events. You could get this up and running fairly quickly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文