ExchangeServiceSubscribeToPushNotifications(IEnumerableFolderId, Uri, Int32, String, String, CancellationToken, EventType) - метод
Subscribes to push notifications. Calling this method results in a call to EWS.
Пространство имён: Tessa.Exchange.WebServices.DataСборка: Tessa.Server (в Tessa.Server.dll) Версия: 3.6.0.22
public Task<PushSubscription> SubscribeToPushNotifications(
IEnumerable<FolderId> folderIds,
Uri url,
int frequency,
string watermark,
string callerData,
CancellationToken token = default,
params EventType[] eventTypes
)
Public Function SubscribeToPushNotifications (
folderIds As IEnumerable(Of FolderId),
url As Uri,
frequency As Integer,
watermark As String,
callerData As String,
Optional token As CancellationToken = Nothing,
ParamArray eventTypes As EventType()
) As Task(Of PushSubscription)
public:
Task<PushSubscription^>^ SubscribeToPushNotifications(
IEnumerable<FolderId^>^ folderIds,
Uri^ url,
int frequency,
String^ watermark,
String^ callerData,
CancellationToken token = CancellationToken(),
... array<EventType>^ eventTypes
)
member SubscribeToPushNotifications :
folderIds : IEnumerable<FolderId> *
url : Uri *
frequency : int *
watermark : string *
callerData : string *
?token : CancellationToken *
eventTypes : EventType[]
(* Defaults:
let _token = defaultArg token new CancellationToken()
*)
-> Task<PushSubscription>
- folderIds IEnumerableFolderId
- The Ids of the folder to subscribe to.
- 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.
TaskPushSubscriptionA PushSubscription representing the new subscription.