gpt4 book ai didi

c# - 没有订阅 SqlDependency

转载 作者:太空宇宙 更新时间:2023-11-03 17:06:34 26 4
gpt4 key购买 nike

我正在尝试使用 SqlDependency 编写代码来注册通知,但我无法让它工作。我首先尝试在 .Net 中使用 Visual Studio,然后将其编译为 Mono。这是我的代码:http://pastebin.com/c6kZBwwU

在 .Net 平台上,它工作得很好。但是在 Mono 中,我没有收到通知。

我做了一些研究并查看了 Sql Server 为这两个应用程序接收的内容:

单声道跟踪: Trace for the Mono version

.Net 跟踪: Trace for the .Net version

如您所见,Mono 似乎没有向 Sql Server 发送必要的请求……是执行失败了,还是我遗漏了什么?

最佳答案

Is the implementation broken, or did I miss something ?

splinter 不是这个词。它可能不完整。由于 Mono 是一个开源项目,它正在等待您的拉取请求来改进它。

关于c# - 没有订阅 SqlDependency,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20825887/

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