Class IpLocatorOptions
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
IpLocator 配置类
public class IpLocatorOptions
- Inheritance
-
IpLocatorOptions
- Inherited Members
- Extension Methods
Constructors
IpLocatorOptions()
public IpLocatorOptions()
Properties
EnableCache
获得/设置 是否开启缓存降低请求频率 默认 true 缓存
public bool EnableCache { get; set; }
Property Value
ProviderName
获得/设置 定位器名称 内置支持 BaiduIpLocatorProvider BaiduIpLocatorProviderV2
public string? ProviderName { get; set; }
Property Value
SlidingExpiration
获得/设置 滑动过期时间 默认 5 分钟
public TimeSpan SlidingExpiration { get; set; }