Skip to content

Commit

Permalink
Re-fix issue #3 - property moved to base interface
Browse files Browse the repository at this point in the history
  • Loading branch information
justdmitry committed Oct 18, 2018
1 parent 4e51706 commit 17a784c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/RecurrentTasks/ITask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public interface ITask : IHostedService
/// <remarks>All properties may be changed while running (take effect on next run)</remarks>
TaskOptions Options { get; }

/// <summary>
/// Type of <see cref="IRunnable"/> this task use (for easier retrieval for logging etc)
/// </summary>
Type RunnableType { get; }

/// <summary>
/// Start task with cancellation token (instead of <see cref="Stop"/>)
/// </summary>
Expand Down
7 changes: 1 addition & 6 deletions src/RecurrentTasks/ITaskOfT.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
namespace RecurrentTasks
{
using System;

public interface ITask<TRunnable> : ITask
where TRunnable : IRunnable
{
/// <summary>
/// Type of <see cref="TRunnable"/> this task use (for easier retrieval for logging etc)
/// </summary>
Type RunnableType { get; }
// Nothing
}
}

0 comments on commit 17a784c

Please sign in to comment.