ExchangeServiceSubscribeToPushNotificationsOnAllFolders(Uri, Int32, String, String, CancellationToken, EventType) - метод

Subscribes to push notifications on all folders in the authenticated user's mailbox. Calling this method results in a call to EWS.

Definition

Пространство имён: Tessa.Exchange.WebServices.Data
Сборка: Tessa.Server (в Tessa.Server.dll) Версия: 4.0.4
C#
public Task<PushSubscription> SubscribeToPushNotificationsOnAllFolders(
	Uri url,
	int frequency,
	string watermark,
	string callerData,
	CancellationToken token = default,
	params EventType[] eventTypes
)

Параметры

url  Uri
The URL of the Web Service endpoint the Exchange server should push events to.
frequency  Int32
The frequency, in minutes, at which the Exchange server should contact the Web Service endpoint. Frequency must be between 1 and 1440.
watermark  String
An optional watermark representing a previously opened subscription.
callerData  String
Optional caller data that will be returned the call back.
token  CancellationToken  (Optional)
 
eventTypes  EventType
The event types to subscribe to.

Возвращаемое значение

TaskPushSubscription
A PushSubscription representing the new subscription.

См. также