From 7810d6ed1ad1ca6a8db3ed90f2adc701df967274 Mon Sep 17 00:00:00 2001 From: johnstoletov Date: Mon, 22 Aug 2022 18:52:26 +0300 Subject: [PATCH] IHorarium interface fixed --- src/Horarium/Interfaces/IHorarium.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Horarium/Interfaces/IHorarium.cs b/src/Horarium/Interfaces/IHorarium.cs index 7effeae..bebca16 100644 --- a/src/Horarium/Interfaces/IHorarium.cs +++ b/src/Horarium/Interfaces/IHorarium.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; +using Horarium.Builders.JobSequenceBuilder; using Horarium.Builders.Recurrent; using Horarium.Builders.Parameterized; @@ -20,6 +21,7 @@ public interface IHorarium : IDisposable /// Type of job, job will create from factory /// Type of parameters /// + [Obsolete("use Schedule method instead")] IParameterizedJobBuilder Create(TJobParam param) where TJob : IJob; /// @@ -29,5 +31,13 @@ public interface IHorarium : IDisposable /// Type of job, job will create from factory /// IRecurrentJobBuilder CreateRecurrent(string cron) where TJob : IJobRecurrent; + + /// + /// Create one time job + /// + /// Type of job, job will create from factory + /// Type of parameters + /// + Task Schedule(TJobParam param, Action configure = null) where TJob : IJob; } } \ No newline at end of file