Interface IThrottleDispatcherFactory
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
同步限流器接口
public interface IThrottleDispatcherFactory
- Extension Methods
Methods
Clear(string?)
销毁限流器
void Clear(string? key = null)
Parameters
key
string为空时销毁所有限流器
GetOrCreate(string, ThrottleOptions?)
获得或创建限流器
ThrottleDispatcher GetOrCreate(string key, ThrottleOptions? options = null)
Parameters
key
stringoptions
ThrottleOptions
Returns
GetOrCreate(string, int)
获得或创建限流器
ThrottleDispatcher GetOrCreate(string key, int interval)