aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Threading/TimerFactory.cs
blob: ca50064c7a8abe3c87df832b1d4a8882a4f9fcde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using MediaBrowser.Model.Threading;

namespace Emby.Server.Implementations.Threading
{
    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);
        }
    }
}