Ejemplo n.º 1
0
 /// <summary>
 /// Purges all node item.
 /// </summary>
 /// <param name="iqSender">The <see cref="IClientIqSender"/></param>
 /// <param name="to">Jid of the pubsub service for this request</param>
 /// <param name="node">The node.</param>
 /// <param name="timeout">The timeout in milliseconds.</param>
 /// <param name="cancellationToken">The cancellation token used to cancel the request.</param>
 /// <returns></returns>
 /// <remarks>
 /// If a service persists published items, a node owner may want to purge
 /// the node of all published items (thus removing all items from the
 /// persistent store, with the exception of the last published item,
 /// which MAY be cached). It is OPTIONAL for a service to implement this
 /// feature.
 /// </remarks>
 public static async Task <Iq> PurgeNodeAsync(
     this IClientIqSender iqSender, Jid to, string node, int timeout, CancellationToken cancellationToken)
 {
     return(await iqSender.SendIqAsync(PubSubBuilder.PurgeNode(to, node), timeout, cancellationToken));
 }