Class RateLimiterPolicyService
- Namespace
- Dynamicweb.SystemTools.Security
- Assembly
- Dynamicweb.dll
public abstract class RateLimiterPolicyService : ICacheStorage<long, RateLimiterPolicyConfiguration>, ICacheStorage<long>, ICacheStorage
- Inheritance
-
RateLimiterPolicyService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public abstract CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public abstract void ClearCache()
ClearCache(IEnumerable<long>)
Resets the specified keys to the default value for objects stored in the object cache
public abstract void ClearCache(IEnumerable<long> keys)
Parameters
keysIEnumerable<long>Keys to reset
ClearCache(long)
Resets the specified key to the default value for objects stored in the object cache
public abstract void ClearCache(long key)
Parameters
keylongKey to reset
DeletePoliciesByIds(IEnumerable<long>)
public abstract void DeletePoliciesByIds(IEnumerable<long> ids)
Parameters
idsIEnumerable<long>
GetCustomPolicies()
public abstract IEnumerable<RateLimiterPolicyConfiguration> GetCustomPolicies()
Returns
GetDefaultSystemPolicyByName(string)
public abstract RateLimiterPolicyConfiguration? GetDefaultSystemPolicyByName(string name)
Parameters
namestring
Returns
GetPolicyById(long)
public abstract RateLimiterPolicyConfiguration? GetPolicyById(long id)
Parameters
idlong
Returns
GetSystemPolicies()
public abstract IEnumerable<RateLimiterPolicyConfiguration> GetSystemPolicies()
Returns
GetSystemPolicyByName(string)
public abstract RateLimiterPolicyConfiguration? GetSystemPolicyByName(string name)
Parameters
namestring
Returns
IsSystemPolicyName(string)
public abstract bool IsSystemPolicyName(string name)
Parameters
namestring
Returns
Save(RateLimiterPolicyConfiguration)
public abstract void Save(RateLimiterPolicyConfiguration policy)
Parameters
SetCacheType<TObjectCache>()
Changes the storage container
public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<long, RateLimiterPolicyConfiguration>
Type Parameters
TObjectCache