Class DistributedDeviceFlowThrottlingService
- Namespace
- Duende.IdentityServer.Services
- Assembly
- Duende.IdentityServer.dll
The default device flow throttling service using IDistributedCache.
public class DistributedDeviceFlowThrottlingService : IDeviceFlowThrottlingService
- Inheritance
-
DistributedDeviceFlowThrottlingService
- Implements
- Inherited Members
Constructors
DistributedDeviceFlowThrottlingService(IDistributedCache, IClientStore, IClock, IdentityServerOptions)
Initializes a new instance of the DistributedDeviceFlowThrottlingService class.
public DistributedDeviceFlowThrottlingService(IDistributedCache cache, IClientStore clientStore, IClock clock, IdentityServerOptions options)
Parameters
cache
IDistributedCacheThe cache.
clientStore
IClientStoreclock
IClockThe clock.
options
IdentityServerOptionsThe options.
- See Also
Methods
ShouldSlowDown(string, DeviceCode)
Decides if the requesting client and device code needs to slow down.
public Task<bool> ShouldSlowDown(string deviceCode, DeviceCode details)
Parameters
deviceCode
stringThe device code.
details
DeviceCodeThe device code details.
Returns
Exceptions
- ArgumentNullException
deviceCode
- See Also