jellyfin/Emby.Server.Implementations/Threading/TimerFactory.cs

19 lines
549 B
C#
Raw Normal View History

2016-10-31 21:07:12 -07:00
using System;
using MediaBrowser.Model.Threading;
namespace Emby.Server.Implementations.Threading
2016-10-31 21:07:12 -07: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);
}
}
}