PollScheduleStore Class
Keeps each polled request's next-poll instant in the server's entity storage, under a key of its own.
public sealed class PollScheduleStore : Abblix.Oidc.Server.Features.Storages.IPollScheduleStoreInheritance System.Object → PollScheduleStore
Implements IPollScheduleStore
Constructors
PollScheduleStore(IEntityStorage) Constructor
Keeps each polled request's next-poll instant in the server's entity storage, under a key of its own.
public PollScheduleStore(Abblix.Oidc.Server.Features.Storages.IEntityStorage storage);Parameters
storage IEntityStorage
Where the instant is kept.
Methods
PollScheduleStore.SetNextPollAtAsync(string, DateTimeOffset, TimeSpan) Method
Records the earliest moment this request's client may ask again.
public System.Threading.Tasks.Task SetNextPollAtAsync(string key, System.DateTimeOffset nextPollAt, System.TimeSpan expiresIn);Parameters
key System.String
The storage key naming this request's poll schedule.
nextPollAt System.DateTimeOffset
The instant before which the client is told to slow down.
expiresIn System.TimeSpan
What the request it belongs to has left, so the entry cannot outlive it.
Implements SetNextPollAtAsync(string, DateTimeOffset, TimeSpan)
Returns
PollScheduleStore.TryGetNextPollAtAsync(string) Method
The earliest moment this request's client may ask again, or null when it may ask now.
public System.Threading.Tasks.Task<System.Nullable<System.DateTimeOffset>> TryGetNextPollAtAsync(string key);Parameters
key System.String
The storage key naming this request's poll schedule.
Implements TryGetNextPollAtAsync(string)
Returns
System.Threading.Tasks.Task<System.Nullable<System.DateTimeOffset>>
The instant, or null when none is recorded.