mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
22 lines
632 B
C#
22 lines
632 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using MediaBrowser.Model.Threading;
|
|||
|
|
|||
|
namespace Emby.Common.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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|