PollClient Class
The receiver's side of poll-based delivery (RFC 8936): one POST that acknowledges what was processed and asks for what waits. The wire shapes live beside it; this type owns only the transport.
public sealed class PollClientInheritance System.Object → PollClient
Remarks
It knows nothing of how the endpoint was learned. RFC 8936 leaves that to whatever arranged the feed, so a framework that carries poll deliveries in its own configuration - Shared Signals does - adds the step from its model to this URL on its own side.
Constructors
PollClient(HttpClient) Constructor
The receiver's side of poll-based delivery (RFC 8936): one POST that acknowledges what was processed and asks for what waits. The wire shapes live beside it; this type owns only the transport.
public PollClient(System.Net.Http.HttpClient httpClient);Parameters
httpClient System.Net.Http.HttpClient
The client polls are spoken through. Authentication is its configuration, not this type's concern.
Remarks
It knows nothing of how the endpoint was learned. RFC 8936 leaves that to whatever arranged the feed, so a framework that carries poll deliveries in its own configuration - Shared Signals does - adds the step from its model to this URL on its own side.
Methods
PollClient.PollAsync(Uri, PollRequest, CancellationToken) Method
Polls endpoint for pending Security Event Tokens.
public System.Threading.Tasks.Task<Abblix.SecurityEvents.Delivery.PollResponse> PollAsync(System.Uri endpoint, Abblix.SecurityEvents.Delivery.PollRequest request, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
endpoint System.Uri
The transmitter-supplied poll endpoint URL.
request PollRequest
What to acknowledge and what to return.
cancellationToken System.Threading.CancellationToken
Cancels the poll.
Returns
System.Threading.Tasks.Task<PollResponse>
Exceptions
System.Net.Http.HttpRequestException
The transmitter answered with an error status.