[Modify] Remove it

This commit is contained in:
sta 2021-10-08 19:17:29 +09:00
parent 87682067ce
commit 43a0b57efe

View File

@ -236,28 +236,6 @@ namespace WebSocketSharp.Server
} }
} }
/// <summary>
/// Gets the total number of the sessions in the WebSocket services.
/// </summary>
/// <value>
/// An <see cref="int"/> that represents the total number of
/// the sessions in the services.
/// </value>
[Obsolete ("This property will be removed.")]
public int SessionCount {
get {
var cnt = 0;
foreach (var host in Hosts) {
if (_state != ServerState.Start)
break;
cnt += host.Sessions.Count;
}
return cnt;
}
}
/// <summary> /// <summary>
/// Gets or sets the time to wait for the response to the WebSocket Ping /// Gets or sets the time to wait for the response to the WebSocket Ping
/// or Close. /// or Close.