gpt4 book ai didi

.NET "Push"技术?

转载 作者:行者123 更新时间:2023-12-01 12:35:04 29 4
gpt4 key购买 nike

我正在设计一个新项目,我正在尝试找出将数据/事件从服务器应用程序推送到客户端应用程序(即 WPF 应用程序)的方法。

我知道的两个是:

是否有其他解决方案让服务器与客户端对话?如果有,它们是什么?

最佳答案

Query Notification可能有用,

Query notifications were introduced in SQL Server 2005 and SQL Server Native Client. Built upon the Service Broker infrastructure introduced in SQL Server 2005, query notifications allow applications to be notified when data has changed. This feature is particularly useful for applications that provide a cache of information from a database, such as a Web application, and need to be notified when the source data is changed.

另请阅读本主题: Receiving Database Change Notifications Using the WCF Service Model


在 ASP.NET 应用程序中:使用 Pokein ASP.NET Comet AJAX库(Reverse-AJAX Server push)

PokeIn gives you an enhanced JSON functionality to make your server side objects available in client side. Simply, it is a Reverse Ajax library which makes it easy to call JavaScript functions from C#/VB.NET and to call C#/VB.NET functions from JavaScript. It has numerous features like event ordering, resource management, exception handling, marshaling, Ajax upload control, mono compatibility, WCF & .NET Remoting integration and scalable server push.

PokeIn is compatible with Mono and All the .Net versions(>1.1). enter image description here

Above diagram shows, how PokeIn generates dynamic JavaScript codes from a .NET class to provide interaction on both side.

PokeIn organizes connections and generates server side object instances for each client. So, you can be sure about the interactions with specific target. PokeIn follows the connection state of each client to tell you one of your users has just disconnected. Also, It groups client side connections by server side session ids. Thus, you know how many views active on a single session.

PokeIn creates a channel between the client and server side static resource. It simply manages resources which specific to a client session and/or application wide.

PokeIn provides secure channels (view specific decoding and session/view cross check) . Also, it gives you to control for communication handlers. So, you may add some extra security controls into these layers.

PokeIn is a comprehensive solution. It has many features that any web application may need. It has been used in many projects like an online spreadsheet application to browser based games.

Important Notice PokeIn definer class feature is provided to make your communication needs between the client and server in a solid way. Make sure your implementation efficiently uses it.

关于.NET "Push"技术?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5708780/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com