#### [Abblix\.SecurityEvents](https://www.abblix.com/en/docs/api/abblix-securityevents 'index')
### [Abblix\.SecurityEvents\.Delivery](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery 'Abblix\.SecurityEvents\.Delivery')

## 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\.

```csharp
public sealed class PollClient
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object '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 {#Abblix.SecurityEvents.Delivery.PollClient.PollClient(System.Net.Http.HttpClient)}

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\.

```csharp
public PollClient(System.Net.Http.HttpClient httpClient);
```
#### Parameters

###### `httpClient` [System\.Net\.Http\.HttpClient](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient 'System\.Net\.Http\.HttpClient') {#Abblix.SecurityEvents.Delivery.PollClient.PollClient(System.Net.Http.HttpClient).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 {#Abblix.SecurityEvents.Delivery.PollClient.PollAsync(System.Uri,Abblix.SecurityEvents.Delivery.PollRequest,System.Threading.CancellationToken)}

Polls [endpoint](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.PollClient#Abblix.SecurityEvents.Delivery.PollClient.PollAsync(System.Uri,Abblix.SecurityEvents.Delivery.PollRequest,System.Threading.CancellationToken).endpoint 'Abblix\.SecurityEvents\.Delivery\.PollClient\.PollAsync\(System\.Uri, Abblix\.SecurityEvents\.Delivery\.PollRequest, System\.Threading\.CancellationToken\)\.endpoint') for pending Security Event Tokens\.

```csharp
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](https://learn.microsoft.com/en-us/dotnet/api/system.uri 'System\.Uri') {#Abblix.SecurityEvents.Delivery.PollClient.PollAsync(System.Uri,Abblix.SecurityEvents.Delivery.PollRequest,System.Threading.CancellationToken).endpoint}

The transmitter\-supplied poll endpoint URL\.

###### `request` [PollRequest](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.PollRequest 'Abblix\.SecurityEvents\.Delivery\.PollRequest') {#Abblix.SecurityEvents.Delivery.PollClient.PollAsync(System.Uri,Abblix.SecurityEvents.Delivery.PollRequest,System.Threading.CancellationToken).request}

What to acknowledge and what to return\.

###### `cancellationToken` [System\.Threading\.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken 'System\.Threading\.CancellationToken') {#Abblix.SecurityEvents.Delivery.PollClient.PollAsync(System.Uri,Abblix.SecurityEvents.Delivery.PollRequest,System.Threading.CancellationToken).cancellationToken}

Cancels the poll\.

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[PollResponse](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.PollResponse 'Abblix\.SecurityEvents\.Delivery\.PollResponse')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')

#### Exceptions

[System\.Net\.Http\.HttpRequestException](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httprequestexception 'System\.Net\.Http\.HttpRequestException')  
The transmitter answered with an error status\.
