diff --git a/src/RecurrentTasks/ITask.cs b/src/RecurrentTasks/ITask.cs index abbd48a..b21b773 100644 --- a/src/RecurrentTasks/ITask.cs +++ b/src/RecurrentTasks/ITask.cs @@ -31,6 +31,11 @@ public interface ITask : IHostedService /// All properties may be changed while running (take effect on next run) TaskOptions Options { get; } + /// + /// Type of this task use (for easier retrieval for logging etc) + /// + Type RunnableType { get; } + /// /// Start task with cancellation token (instead of ) /// diff --git a/src/RecurrentTasks/ITaskOfT.cs b/src/RecurrentTasks/ITaskOfT.cs index 6f5ed54..ff094de 100644 --- a/src/RecurrentTasks/ITaskOfT.cs +++ b/src/RecurrentTasks/ITaskOfT.cs @@ -1,13 +1,8 @@ namespace RecurrentTasks { - using System; - public interface ITask : ITask where TRunnable : IRunnable { - /// - /// Type of this task use (for easier retrieval for logging etc) - /// - Type RunnableType { get; } + // Nothing } }