From bfcd1b520fd79b893e721ba916ae5e1656407d2f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 16 Aug 2017 02:43:41 -0400 Subject: merge common implementations and server implementations --- Emby.Server.Implementations/Threading/TimerFactory.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Emby.Server.Implementations/Threading/TimerFactory.cs (limited to 'Emby.Server.Implementations/Threading/TimerFactory.cs') diff --git a/Emby.Server.Implementations/Threading/TimerFactory.cs b/Emby.Server.Implementations/Threading/TimerFactory.cs new file mode 100644 index 000000000..4ab6f6fc4 --- /dev/null +++ b/Emby.Server.Implementations/Threading/TimerFactory.cs @@ -0,0 +1,18 @@ +using System; +using MediaBrowser.Model.Threading; + +namespace Emby.Server.Implementations.Threading +{ + public class TimerFactory : ITimerFactory + { + public ITimer Create(Action callback, object state, TimeSpan dueTime, TimeSpan period) + { + return new CommonTimer(callback, state, dueTime, period); + } + + public ITimer Create(Action callback, object state, int dueTimeMs, int periodMs) + { + return new CommonTimer(callback, state, dueTimeMs, periodMs); + } + } +} -- cgit v1.2.3