91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 522KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-12
  • 語言: 其他
  • 標簽: Quartz??

資源簡介

Quartz.NET是一個開源的作業(yè)調度框架,一個簡單的使用vs2017開發(fā)的demo。

資源截圖

代碼片段和文件信息

using?Quartz;
using?Quartz.Impl;
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?Topshelf;

namespace?Demo
{
????public?class?HelloJob?:?IJob
????{
????????public?async?Task?Execute(IJobExecutionContext?context)
????????{
????????????Console.WriteLine(“HelloJob?is?executing.“);
????????}
????}

????public?class?WorldJob:IJob
????{
????????public?async?Task?Execute(IJobExecutionContext?context)
????????{
????????????Console.WriteLine(“WorldJob?is?executing.“);
????????}
????}

????public??class?TestJob?:?IJob
????{?

????????public?async?Task?Execute(IJobExecutionContext?context)
????????{
????????????Console.WriteLine(“TestJob測試“);
????????}
????}

????public??class?ServiceRunner?:?ServiceControl?ServiceSuspend?
????{
????????private???IScheduler?scheduler;?

????????public??ServiceRunner()
????????{
????????????Initialize();
????????}

????????public?virtual?async?Task?Initialize()
????????{
????????????ISchedulerFactory?schedulerFactory?=?new?StdSchedulerFactory();
????????????scheduler?=?await?schedulerFactory.GetScheduler().ConfigureAwait(false);?
????????}

???????

????????public?bool?Start(HostControl?hostControl)
????????{
????????????scheduler.Start();
????????????return?true;
????????}

????????public?bool?Stop(HostControl?hostControl)
????????{
????????????scheduler.Shutdown(false);
????????????return?true;
????????}

????????public?bool?Continue(HostControl?hostControl)
????????{
????????????scheduler.ResumeAll();
????????????return?true;
????????}

????????public?bool?Pause(HostControl?hostControl)
????????{
????????????scheduler.PauseAll();
????????????return?true;
????????}


????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1216??2018-08-09?11:43??Demo\App.config

?????文件??????14304??2018-08-09?11:40??Demo\bin\Debug\app.publish\Demo.exe

?????文件???????1808??2018-08-09?11:40??Demo\bin\Debug\Demo.application

?????文件??????13312??2018-08-09?11:40??Demo\bin\Debug\Demo.exe

?????文件???????1184??2018-08-09?11:36??Demo\bin\Debug\Demo.exe.config

?????文件???????5151??2018-08-09?11:40??Demo\bin\Debug\Demo.exe.manifest

?????文件??????26112??2018-08-09?11:40??Demo\bin\Debug\Demo.pdb

?????文件?????860160??2018-07-06?13:09??Demo\bin\Debug\Quartz.dll

?????文件??????23040??2018-07-06?06:09??Demo\bin\Debug\Quartz.Jobs.dll

?????文件?????224640??2018-07-06?13:09??Demo\bin\Debug\Quartz.pdb

?????文件??????24576??2018-07-06?06:09??Demo\bin\Debug\Quartz.Plugins.dll

?????文件????1037855??2018-07-06?13:09??Demo\bin\Debug\Quartz.xml

?????文件???????1148??2018-08-09?11:39??Demo\bin\Debug\quartz_jobs.xml

?????文件?????184832??2018-04-10?07:34??Demo\bin\Debug\Topshelf.dll

?????文件??????61496??2018-04-10?07:34??Demo\bin\Debug\Topshelf.xml

?????文件???????4912??2018-08-09?11:28??Demo\Demo.csproj

?????文件????????554??2018-08-08?08:31??Demo\Demo.csproj.user

?????文件???????1786??2018-08-09?10:47??Demo\HelloJob.cs

?????文件???????1808??2018-08-09?11:40??Demo\obj\Debug\Demo.application

?????文件??????????0??2018-08-09?11:40??Demo\obj\Debug\Demo.csproj.CopyComplete

?????文件?????????42??2018-08-08?14:29??Demo\obj\Debug\Demo.csproj.CoreCompileInputs.cache

?????文件????????876??2018-08-09?10:16??Demo\obj\Debug\Demo.csproj.FileListAbsolute.txt

?????文件??????50604??2018-08-08?14:43??Demo\obj\Debug\Demo.csprojResolveAssemblyReference.cache

?????文件??????13312??2018-08-09?11:40??Demo\obj\Debug\Demo.exe

?????文件???????5151??2018-08-09?11:40??Demo\obj\Debug\Demo.exe.manifest

?????文件??????26112??2018-08-09?11:40??Demo\obj\Debug\Demo.pdb

?????文件????????726??2018-08-09?11:23??Demo\obj\Debug\DesignTimeResolveAssemblyReferences.cache

?????文件???????7141??2018-08-09?11:22??Demo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件??????????0??2018-08-07?15:06??Demo\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

?????文件??????????0??2018-08-07?15:06??Demo\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

............此處省略24個文件信息

評論

共有 條評論