AspNetWebSocketContext.ConnectionCount 属性

定义

获取处于活动状态的 WebSocket 连接数。

public:
 static property int ConnectionCount { int get(); };
public static int ConnectionCount { get; }
member this.ConnectionCount : int
Public Shared ReadOnly Property ConnectionCount As Integer

属性值

Int32

当前活动的 WebSocket 连接数。

适用于