Interface IConnectionService
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
当前链接服务
public interface IConnectionService
- Extension Methods
Properties
Connections
获得 链接集合
ICollection<ConnectionItem> Connections { get; }
Property Value
Count
获得在线连接数
long Count { get; }
Property Value
Methods
AddOrUpdate(ClientInfo)
增加或更新当前 Key
void AddOrUpdate(ClientInfo client)
Parameters
client
ClientInfoClientInfo 实例
TryGetValue(string, out ConnectionItem?)
获得指定 key 的连接信息
bool TryGetValue(string key, out ConnectionItem? value)
Parameters
key
string键值
value
ConnectionItem连接信息