mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
make media encoding project portable
This commit is contained in:
21
Emby.Common.Implementations/Threading/TimerFactory.cs
Normal file
21
Emby.Common.Implementations/Threading/TimerFactory.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user