#### [Abblix\.Oidc\.Server](https://www.abblix.com/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.Storages](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages 'Abblix\.Oidc\.Server\.Features\.Storages')

## PollScheduleStore Class

Keeps each polled request's next\-poll instant in the server's entity storage, under a key of its own\.

```csharp
public sealed class PollScheduleStore : Abblix.Oidc.Server.Features.Storages.IPollScheduleStore
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → PollScheduleStore

Implements [IPollScheduleStore](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IPollScheduleStore 'Abblix\.Oidc\.Server\.Features\.Storages\.IPollScheduleStore')
### Constructors

## PollScheduleStore\(IEntityStorage\) Constructor {#Abblix.Oidc.Server.Features.Storages.PollScheduleStore.PollScheduleStore(Abblix.Oidc.Server.Features.Storages.IEntityStorage)}

Keeps each polled request's next\-poll instant in the server's entity storage, under a key of its own\.

```csharp
public PollScheduleStore(Abblix.Oidc.Server.Features.Storages.IEntityStorage storage);
```
#### Parameters

###### `storage` [IEntityStorage](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IEntityStorage 'Abblix\.Oidc\.Server\.Features\.Storages\.IEntityStorage') {#Abblix.Oidc.Server.Features.Storages.PollScheduleStore.PollScheduleStore(Abblix.Oidc.Server.Features.Storages.IEntityStorage).storage}

Where the instant is kept\.
### Methods

## PollScheduleStore\.SetNextPollAtAsync\(string, DateTimeOffset, TimeSpan\) Method {#Abblix.Oidc.Server.Features.Storages.PollScheduleStore.SetNextPollAtAsync(string,System.DateTimeOffset,System.TimeSpan)}

Records the earliest moment this request's client may ask again\.

```csharp
public System.Threading.Tasks.Task SetNextPollAtAsync(string key, System.DateTimeOffset nextPollAt, System.TimeSpan expiresIn);
```
#### Parameters

###### `key` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.Storages.PollScheduleStore.SetNextPollAtAsync(string,System.DateTimeOffset,System.TimeSpan).key}

The storage key naming this request's poll schedule\.

###### `nextPollAt` [System\.DateTimeOffset](https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset 'System\.DateTimeOffset') {#Abblix.Oidc.Server.Features.Storages.PollScheduleStore.SetNextPollAtAsync(string,System.DateTimeOffset,System.TimeSpan).nextPollAt}

The instant before which the client is told to slow down\.

###### `expiresIn` [System\.TimeSpan](https://learn.microsoft.com/en-us/dotnet/api/system.timespan 'System\.TimeSpan') {#Abblix.Oidc.Server.Features.Storages.PollScheduleStore.SetNextPollAtAsync(string,System.DateTimeOffset,System.TimeSpan).expiresIn}

What the request it belongs to has left, so the entry cannot outlive it\.

Implements [SetNextPollAtAsync\(string, DateTimeOffset, TimeSpan\)](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IPollScheduleStore#Abblix.Oidc.Server.Features.Storages.IPollScheduleStore.SetNextPollAtAsync(string,System.DateTimeOffset,System.TimeSpan) 'Abblix\.Oidc\.Server\.Features\.Storages\.IPollScheduleStore\.SetNextPollAtAsync\(string, System\.DateTimeOffset, System\.TimeSpan\)')

#### Returns
[System\.Threading\.Tasks\.Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task 'System\.Threading\.Tasks\.Task')

## PollScheduleStore\.TryGetNextPollAtAsync\(string\) Method {#Abblix.Oidc.Server.Features.Storages.PollScheduleStore.TryGetNextPollAtAsync(string)}

The earliest moment this request's client may ask again, or null when it may ask now\.

```csharp
public System.Threading.Tasks.Task<System.Nullable<System.DateTimeOffset>> TryGetNextPollAtAsync(string key);
```
#### Parameters

###### `key` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.Storages.PollScheduleStore.TryGetNextPollAtAsync(string).key}

The storage key naming this request's poll schedule\.

Implements [TryGetNextPollAtAsync\(string\)](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IPollScheduleStore#Abblix.Oidc.Server.Features.Storages.IPollScheduleStore.TryGetNextPollAtAsync(string) 'Abblix\.Oidc\.Server\.Features\.Storages\.IPollScheduleStore\.TryGetNextPollAtAsync\(string\)')

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.DateTimeOffset](https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset 'System\.DateTimeOffset')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')  
The instant, or null when none is recorded\.
