You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/Shedulling/IExpirationSheduller.cs

39 lines
1008 B

6 years ago
using System;
namespace ZeroLevel.Services.Shedulling
{
public interface IExpirationSheduller
6 years ago
: IDisposable
{
/// <summary>
/// Adding a task with the time after which it should be completed
6 years ago
/// </summary>
long Push(TimeSpan timespan, Action<long> callback);
6 years ago
/// <summary>
/// Adding a task with the date / time when it should be executed
6 years ago
/// </summary>
long Push(DateTime date, Action<long> callback);
6 years ago
/// <summary>
/// Delete task by ID
6 years ago
/// </summary>
/// <param name="key">Task ID</param>
6 years ago
bool Remove(long key);
6 years ago
/// <summary>
/// Cleaning the scheduler
6 years ago
/// </summary>
void Clean();
6 years ago
/// <summary>
/// Pausing the scheduler (does not prevent the addition of new tasks)
6 years ago
/// </summary>
void Pause();
6 years ago
/// <summary>
/// Resumption of work scheduler
6 years ago
/// </summary>
void Resume();
}
}

Powered by TurnKey Linux.