Files
server/src/Notifications/ConnectionCounter.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
383 B
C#
Raw Normal View History

namespace Bit.Notifications;
2022-08-29 14:53:16 -04:00
public class ConnectionCounter
2018-08-23 15:48:40 -04:00
{
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;
}
}