本文介绍了如何在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?

推荐答案

根据您的亲和力,连接可以包含一个或多个邮箱.您只需关闭邮箱本身的连接即可 https://docs.microsoft.com/zh-cn/dotnet/api/microsoft.exchange.webservices.data.streamingsubscriptionconnection.close?view=exchange-ews-api .然后删除该邮箱的订阅并重新启动连接.

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中关闭特定邮箱的流订阅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 19:12