Class
HttpWebSocketConnectionCollection
Provides a managed object to manage HttpWebSocket connections.
public sealed class HttpWebSocketConnectionCollection : IReadOnlyCollection<HttpWebSocket>, IEnumerable<HttpWebSocket>, IEnumerableInheritance #
object ← HttpWebSocketConnectionCollection
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 #
| Name | Description |
|---|---|
| ActiveConnections | Gets an number indicating the amount of active web socket connections. |
| Count |
Methods #
| Name | Description |
|---|---|
| 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. |