PollClientExtensions Class
Polls a stream by its delivery configuration rather than by a bare URL.
public static class PollClientExtensionsInheritance System.Object → PollClientExtensions
Remarks
The step from a Shared Signals stream to the endpoint RFC 8936 speaks to. It stays on this side because the delivery model is this framework's: the poll client below knows a URL, and which URL a stream has is a question only a stream configuration answers.
Methods
PollClientExtensions.PollAsync(this PollClient, PollDeliveryMethod, PollRequest, CancellationToken) Method
Polls the endpoint of a stream's poll delivery for pending Security Event Tokens.
public static System.Threading.Tasks.Task<Abblix.SecurityEvents.Delivery.PollResponse> PollAsync(this Abblix.SecurityEvents.Delivery.PollClient client, Abblix.SharedSignals.Model.Delivery.PollDeliveryMethod delivery, Abblix.SecurityEvents.Delivery.PollRequest request, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
client Abblix.SecurityEvents.Delivery.PollClient
The transport.
delivery PollDeliveryMethod
The stream's poll delivery, whose endpoint URL the transmitter supplied at stream creation (SSF 1.0 Sections 6.1.2, 8.1.1.1).
request Abblix.SecurityEvents.Delivery.PollRequest
What to acknowledge and what to return; the empty request is a valid default poll (RFC 8936 Section 2.2).
cancellationToken System.Threading.CancellationToken
Cancels the poll - the way a caller bounds a long poll the transmitter holds open.
Returns
System.Threading.Tasks.Task<Abblix.SecurityEvents.Delivery.PollResponse>