|
|
|
@ -151,15 +151,31 @@ namespace WebSocketSharp.Server
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the session with the specified <paramref name="id"/>.
|
|
|
|
/// Gets the session instance with the specified <paramref name="id"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>
|
|
|
|
/// <value>
|
|
|
|
/// A <see cref="IWebSocketSession"/> instance that provides the access to
|
|
|
|
/// <para>
|
|
|
|
/// the information in the session, or <see langword="null"/> if it's not found.
|
|
|
|
/// A <see cref="IWebSocketSession"/> instance or
|
|
|
|
|
|
|
|
/// <see langword="null"/> if not found.
|
|
|
|
|
|
|
|
/// </para>
|
|
|
|
|
|
|
|
/// <para>
|
|
|
|
|
|
|
|
/// That session instance provides the function to
|
|
|
|
|
|
|
|
/// access the information in the session.
|
|
|
|
|
|
|
|
/// </para>
|
|
|
|
/// </value>
|
|
|
|
/// </value>
|
|
|
|
/// <param name="id">
|
|
|
|
/// <param name="id">
|
|
|
|
/// A <see cref="string"/> that represents the ID of the session to find.
|
|
|
|
/// A <see cref="string"/> that represents the ID of
|
|
|
|
|
|
|
|
/// the session to find.
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
|
|
|
|
/// <exception cref="InvalidOperationException">
|
|
|
|
|
|
|
|
/// The current state of the manager is not Start.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
|
|
|
|
/// <exception cref="ArgumentNullException">
|
|
|
|
|
|
|
|
/// <paramref name="id"/> is <see langword="null"/>.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
|
|
|
|
/// <exception cref="ArgumentException">
|
|
|
|
|
|
|
|
/// <paramref name="id"/> is an empty string.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
public IWebSocketSession this[string id] {
|
|
|
|
public IWebSocketSession this[string id] {
|
|
|
|
get {
|
|
|
|
get {
|
|
|
|
if (_state != ServerState.Start) {
|
|
|
|
if (_state != ServerState.Start) {
|
|
|
|
|