Radarr/src/NzbDrone.SignalR/NoOpPerformanceCounter.cs

53 lines
868 B
C#
Raw Normal View History

using System.Diagnostics;
using Microsoft.AspNet.SignalR.Infrastructure;
2013-11-22 05:26:57 +00:00
namespace NzbDrone.SignalR
2013-11-22 05:26:57 +00:00
{
2016-12-09 02:37:46 +00:00
public class NoOpPerformanceCounter : IPerformanceCounter
2013-11-22 05:26:57 +00:00
{
public string CounterName
{
get
{
return GetType().Name;
}
}
public long Decrement()
{
return 0;
}
public long Increment()
{
return 0;
}
public long IncrementBy(long value)
{
return 0;
}
public long RawValue
{
get { return 0; }
set { }
}
public void Close()
{
}
public void RemoveInstance()
{
2013-11-22 05:26:57 +00:00
}
public CounterSample NextSample()
{
return CounterSample.Empty;
}
}
}