Table of Contents

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 string
options ThrottleOptions

Returns

ThrottleDispatcher

GetOrCreate(string, int)

获得或创建限流器

ThrottleDispatcher GetOrCreate(string key, int interval)

Parameters

key string
interval int

Returns

ThrottleDispatcher