Table of Contents

Interface IConnectionService

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

当前链接服务

public interface IConnectionService
Extension Methods

Properties

Connections

获得 链接集合

ICollection<ConnectionItem> Connections { get; }

Property Value

ICollection<ConnectionItem>

Count

获得在线连接数

long Count { get; }

Property Value

long

Methods

AddOrUpdate(ClientInfo)

增加或更新当前 Key

void AddOrUpdate(ClientInfo client)

Parameters

client ClientInfo

ClientInfo 实例

TryGetValue(string, out ConnectionItem?)

获得指定 key 的连接信息

bool TryGetValue(string key, out ConnectionItem? value)

Parameters

key string

键值

value ConnectionItem

连接信息

Returns

bool