2016-11-01 00:07:12 -04:00
|
|
|
|
using System;
|
|
|
|
|
using MediaBrowser.Model.Threading;
|
|
|
|
|
|
2017-08-16 02:43:41 -04:00
|
|
|
|
namespace Emby.Server.Implementations.Threading
|
2016-11-01 00:07:12 -04:00
|
|
|
|
{
|
|
|
|
|
public class TimerFactory : ITimerFactory
|
|
|
|
|
{
|
|
|
|
|
public ITimer Create(Action<object> callback, object state, TimeSpan dueTime, TimeSpan period)
|
|
|
|
|
{
|
|
|
|
|
return new CommonTimer(callback, state, dueTime, period);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ITimer Create(Action<object> callback, object state, int dueTimeMs, int periodMs)
|
|
|
|
|
{
|
|
|
|
|
return new CommonTimer(callback, state, dueTimeMs, periodMs);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|