You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
865 B
53 lines
865 B
using System.Diagnostics;
|
|
using Microsoft.AspNet.SignalR.Infrastructure;
|
|
|
|
namespace NzbDrone.SignalR
|
|
{
|
|
public class NoOpPerformanceCounter : IPerformanceCounter
|
|
{
|
|
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()
|
|
{
|
|
|
|
}
|
|
|
|
public CounterSample NextSample()
|
|
{
|
|
return CounterSample.Empty;
|
|
}
|
|
}
|
|
}
|