Table of Contents

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

CacheInformation

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

keys IEnumerable<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

key long

Key to reset

DeletePoliciesByIds(IEnumerable<long>)

public abstract void DeletePoliciesByIds(IEnumerable<long> ids)

Parameters

ids IEnumerable<long>

GetCustomPolicies()

public abstract IEnumerable<RateLimiterPolicyConfiguration> GetCustomPolicies()

Returns

IEnumerable<RateLimiterPolicyConfiguration>

GetDefaultSystemPolicyByName(string)

public abstract RateLimiterPolicyConfiguration? GetDefaultSystemPolicyByName(string name)

Parameters

name string

Returns

RateLimiterPolicyConfiguration

GetPolicyById(long)

public abstract RateLimiterPolicyConfiguration? GetPolicyById(long id)

Parameters

id long

Returns

RateLimiterPolicyConfiguration

GetSystemPolicies()

public abstract IEnumerable<RateLimiterPolicyConfiguration> GetSystemPolicies()

Returns

IEnumerable<RateLimiterPolicyConfiguration>

GetSystemPolicyByName(string)

public abstract RateLimiterPolicyConfiguration? GetSystemPolicyByName(string name)

Parameters

name string

Returns

RateLimiterPolicyConfiguration

IsSystemPolicyName(string)

public abstract bool IsSystemPolicyName(string name)

Parameters

name string

Returns

bool

Save(RateLimiterPolicyConfiguration)

public abstract void Save(RateLimiterPolicyConfiguration policy)

Parameters

policy RateLimiterPolicyConfiguration

SetCacheType<TObjectCache>()

Changes the storage container

public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<long, RateLimiterPolicyConfiguration>

Type Parameters

TObjectCache
To top