1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-04 14:13:28 +01:00
bitwarden-server/src/Notifications/ConnectionCounter.cs

30 lines
490 B
C#
Raw Normal View History

2018-08-23 21:48:40 +02:00
using System.Threading;
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;
}
}
}