QinSoft.ServiceSchedule 1.0.3

dotnet add package QinSoft.ServiceSchedule --version 1.0.3
NuGet\Install-Package QinSoft.ServiceSchedule -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="QinSoft.ServiceSchedule" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QinSoft.ServiceSchedule --version 1.0.3
#r "nuget: QinSoft.ServiceSchedule, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install QinSoft.ServiceSchedule as a Cake Addin
#addin nuget:?package=QinSoft.ServiceSchedule&version=1.0.3

// Install QinSoft.ServiceSchedule as a Cake Tool
#tool nuget:?package=QinSoft.ServiceSchedule&version=1.0.3

QinSoft.ServiceSchedule

QinSoft框架下的服务框架

AttributeServiceSecheduleImp

使用Ioc容器和注解来创建调度服务

[Task]特性标示任务对象,[CronJob]特性标示Cron工作方法,[OnceJob]特性标示一次性工作方法

同时支持Cron表达式定制服务执行时间的策略

使用案例

[Task]
public class TestTask
{
    private int i = 0;
    [CronJob]
    public void DoSomething()
    {
        System.Diagnostics.Debug.WriteLine(string.Format("{0}:{1}", i++, DateTime.Now.ToString()));
    }

    [CronJob("0/5 * * * *")]
    public void DoSomething2()
    {
        System.Diagnostics.Debug.WriteLine(string.Format("{0}:{1}", i++, DateTime.Now.ToString()));
    }

    [OnceJob]
    public void DoSomething3()
    {
        System.Diagnostics.Debug.WriteLine(string.Format("{0}:{1}", i++, DateTime.Now.ToString()));
    }

    [OnceJob("0:0:2")]
    public void DoSomething4()
    {
        System.Diagnostics.Debug.WriteLine(string.Format("{0}:{1}", i++, DateTime.Now.ToString()));
    }
}

ServiceSechedule serviceSechedule = new AttributeServiceSecheduleImp();
serviceSechedule.Start();
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 488 7/31/2020
1.0.2 446 6/29/2020
1.0.1 431 4/29/2020
1.0.0 435 3/16/2020

QinSoft框架下服务调度组件 第一版