Table of Contents

Class HttpWebSocketConnectionCollection

Namespace: Sisk.Core.Http.Streams
Assembly: Sisk.Core.dll

Provides a managed object to manage HttpWebSocket connections.

public sealed class HttpWebSocketConnectionCollection : IReadOnlyCollection<HttpWebSocket>, IEnumerable<HttpWebSocket>, IEnumerable

Inheritance

objectHttpWebSocketConnectionCollection

Implements

IReadOnlyCollection<HttpWebSocket>, IEnumerable<HttpWebSocket>, IEnumerable

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

ActiveConnections

Gets an number indicating the amount of active web socket connections.

Count

Methods

All()

Gets all actives HttpWebSocket instances.

DropAll()

Closes all registered and active HttpWebSocket in this collections.

Find(Func<string, bool>)

Gets all actives HttpWebSocket instances that matches their identifier predicate.

GetByIdentifier(string)

Gets the Web Sockect connection for the specified identifier.

GetEnumerator()

OnWebSocketRegister

Represents an event that is fired when an HttpWebSocket is registered in this collection.

OnWebSocketUnregister

Represents an event that is fired when an HttpWebSocket is closed and removed from this collection.