从 WCF 应用程序访问 SAPI

发布于 2024-08-08 19:39:38 字数 29 浏览 1 评论 0原文

是否可以从 WCF 应用程序访问 SAPI?

is it possible to access SAPI from a WCF app ?

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

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

发布评论

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

评论(1

小梨窩很甜 2024-08-15 19:39:38

您的意思是从 WCF 服务访问它吗?

我不确定,但我怀疑您需要使该服务作为单个实例运行。如果我没记错的话,SAPI 是为在桌面应用程序中使用而设计的,并且可能依赖于消息泵的存在。您可能必须将服务托管在 Windows 窗体应用程序中才能为其提供服务。

Do you mean to access it from a WCF service?

I don't know for certain, but I suspect you'd need to make the service run as a single instance. If I recall correctly, SAPI was designed for use from a desktop application, and might depend on the existence of a message pump. You might have to host your service in a Windows Forms application in order to give it one.

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