Luke 1.0.2
dotnet add package Luke --version 1.0.2
NuGet\Install-Package Luke -Version 1.0.2
<PackageReference Include="Luke" Version="1.0.2" />
paket add Luke --version 1.0.2
#r "nuget: Luke, 1.0.2"
// Install Luke as a Cake Addin #addin nuget:?package=Luke&version=1.0.2 // Install Luke as a Cake Tool #tool nuget:?package=Luke&version=1.0.2
Luke
MainJob
Your main job is to check a json file and to import the scheduler jobs implementing LukeJob abstract class into your AppDomain and run them.
Your main project must reference Quartz and implement it as following
public class MainJob : IJob
{
public async Task Execute(IJobExecutionContext context)
{
try
{
ILukeBuilder lukeBuilder = DependencyFactory.Instance.Resolve<ILukeBuilder>();
ILukeExecutor lukeExecutor = DependencyFactory.Instance.Resolve<ILukeExecutor>();
string path = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "LukePkg.json"));
IEnumerable<LukeLocationModel> lukeLocationModels = await lukeBuilder.BuildAsync(path);
await lukeExecutor.ExecuteAsync(lukeLocationModels);
}
catch (System.Exception ex)
{
System.Console.WriteLine(ex);
throw;
}
}
}
Here you can use an IOC container or you can create the instances. It depends on you.
Json File
Your main project must have a json file and it must be an array having AssemblyName and AssemblyLocation tags. You can name it as "LukePkg.json"
[
{
"AssemblyName": "Luke.SampleJob.dll",
"AssemblyLocation": "C:/Users/AkseArzuman/Desktop/Github/luke/sample/Luke.SampleJob/bin/Release/netstandard2.0/publish"
}
]
Scheduler Job
Your scheduler job must implement LukeJob. If you are using a IOC container you must register your dependencies in RegisterDependencies method.
Please see : https://github.com/akselarzuman/luke/tree/master/sample
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Luke.Exceptions (>= 1.0.0)
- Luke.Models (>= 1.0.0)
- Microsoft.Extensions.DependencyModel (>= 2.1.0)
- Newtonsoft.Json (>= 11.0.2)
- Quartz (>= 3.0.5)
- System.Runtime.Loader (>= 4.3.0)
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.2 | 1,052 | 6/1/2018 |