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