2018-04-21 05:52:26 +00:00
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using Microsoft.AspNet.SignalR.Infrastructure;
|
2013-11-22 05:26:57 +00:00
|
|
|
|
|
2018-04-21 05:52:26 +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()
|
|
|
|
|
{
|
2018-04-21 05:52:26 +00:00
|
|
|
|
|
2013-11-22 05:26:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public CounterSample NextSample()
|
|
|
|
|
{
|
|
|
|
|
return CounterSample.Empty;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|