Table of Contents

Class ConnectionHubOptions

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

ConnectionHubOptions 配置类

public class ConnectionHubOptions
Inheritance
ConnectionHubOptions
Inherited Members
Extension Methods

Constructors

ConnectionHubOptions()

public ConnectionHubOptions()

Properties

BeatInterval

获得/设置 ConnectionHub 组件心跳间隔 默认 5000 单位毫秒

public TimeSpan BeatInterval { get; set; }

Property Value

TimeSpan

Enable

获得/设置 是否开启 CollectionHub 功能 默认 false 未开启

public bool Enable { get; set; }

Property Value

bool

EnableIpLocator

获得/设置 是否开启 IP 定位功能 默认 false 未开启

public bool EnableIpLocator { get; set; }

Property Value

bool

ExpirationScanFrequency

获得/设置 过期扫描周期 默认 1 分钟

public TimeSpan ExpirationScanFrequency { get; set; }

Property Value

TimeSpan

Remarks

自动清理超时 5 倍心跳时间的客户端信息

TimeoutInterval

获得/设置 超时间隔 默认 10 秒

public TimeSpan TimeoutInterval { get; set; }

Property Value

TimeSpan

Remarks

不能小于 BeatInterval 心跳间隔