InMemoryConnectionTracker class
In-memory thread-safe implementation of IConnectionTracker.
public sealed class InMemoryConnectionTracker : IConnectionTracker
Public Members
| name | description |
|---|---|
| InMemoryConnectionTracker() | The default constructor. |
| ConnectedCount { get; } | Gets the current number of connected clients. |
| GetConnections() | Returns a snapshot of current connection identifiers. |
| OnConnected(…) | Records a new connection. |
| OnDisconnected(…) | Records a disconnection. |
See Also
- interface IConnectionTracker
- namespace Kestrun.SignalR