如何在EWS API中关闭特定邮箱的流订阅? [英] How to Close a Streaming Subscription for a particular mailbox in EWS API?
问题描述
我有一个运行在multiple streaming subscriptions.
上的EWS托管API代码
我想根据某些条件终止(或重新启动)与特定邮箱的连接.
I have a EWS Managed API code running with multiple streaming subscriptions.
I want to terminate (or restart) the connection to a specific mailbox on the basis of some conditions.
如何使用connection.close()
(或任何其他方式)关闭特定订阅ID?
How to use the connection.close()
(or any other way) to close a particular subscription id?
有什么主意如何强制关闭流式订阅连接?
Any idea how to force close a streaming subscription connection?
推荐答案
根据您的亲和力,连接可以包含一个或多个邮箱.您只需关闭邮箱本身的连接即可
Connections can contain one more more Mailboxes depending on how your doing affinity. You just close the connection the mailbox is in itself https://docs.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.streamingsubscriptionconnection.close?view=exchange-ews-api . Then remove the Subscription for that mailbox and restart the connection.
这篇关于如何在EWS API中关闭特定邮箱的流订阅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!