mirror of
https://github.com/bitwarden/server
synced 2025-12-24 12:13:17 +00:00
28 lines
465 B
C#
28 lines
465 B
C#
namespace Bit.Notifications
|
|
{
|
|
public class ConnectionCounter
|
|
{
|
|
private int _count = 0;
|
|
|
|
public void Increment()
|
|
{
|
|
Interlocked.Increment(ref _count);
|
|
}
|
|
|
|
public void Decrement()
|
|
{
|
|
Interlocked.Decrement(ref _count);
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
_count = 0;
|
|
}
|
|
|
|
public int GetCount()
|
|
{
|
|
return _count;
|
|
}
|
|
}
|
|
}
|