Pulsar 0.0.1
dotnet add package Pulsar --version 0.0.1
NuGet\Install-Package Pulsar -Version 0.0.1
<PackageReference Include="Pulsar" Version="0.0.1" />
paket add Pulsar --version 0.0.1
#r "nuget: Pulsar, 0.0.1"
// Install Pulsar as a Cake Addin
#addin nuget:?package=Pulsar&version=0.0.1
// Install Pulsar as a Cake Tool
#tool nuget:?package=Pulsar&version=0.0.1
Pulsar
<img alt="alt text" src="https://github.com/mertyildiz41/pulsar/blob/main/Neutron-Star.jpg?raw=true" height="200">
Pulsar is task schedule/trigger library in any .NET Core application.
Get Started
..
Roadmap
Version 0.1
- Job Manager
- Remote Trigger
- Remote Terminate
- MSSQL support
Version 1.0
- PostgreSQL support
Usage
// Define a simple job.
public class TestJob : JobBase, IRecurringJob
{
public string Cron { get; set; } = "* * * * *";
public bool Enabled { get; set; } = true;
public TestJob()
{
Name = "Test";
MaxConcurrent = 1;
RetryCount = 1;
JobType = JobType.Recurring;
}
public override Task Execute(WorkerState state, CancellationToken stoppingToken)
{
Console.WriteLine($"{Name} - job is schedule processId: {state.ProcessId} - {state.StartTimeUtc} - State: {state.Status}");
Thread.Sleep(3000);
Console.WriteLine($"{Name} - job is done processId: {state.ProcessId}");
return base.Execute(state, stoppingToken);
}
}
// Setup a worker service.
IHost host = Host.CreateDefaultBuilder(args)
.ConfigureServices(services =>
{
services.AddPulsar(x =>
{
x.AddJobWorker(option =>
{
option.Name = "Test-Service";
option.ControlInterval = 10000;
option.WorkerCount = 2;
});
x.AddMSSQLStorage(option =>
{
option.CheckSchema = false;
option.ConnectionString = "Server=";
});
x.AddScheduleJob<TestJob>();
});
})
.Build();
await host.RunAsync();
// Output:
// /> Test - job is schedule processId: aab0f3ac-ba06-428c-b514-5e11be06855b - 2023-10-02 7:41:09 PM - State: Processing
// /> Test - job is done processId: aab0f3ac-ba06-428c-b514-5e11be06855b
Why Pulsar?
It's much easy to integrate and easy usage. More powerful if comparing to other alternatives.
Licence
MIT License
Copyright (c) 2023 UniqTech
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- Microsoft.Extensions.Hosting (>= 7.0.1)
- NCrontab (>= 3.3.3)
- System.Diagnostics.PerformanceCounter (>= 7.0.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 |
---|---|---|
0.0.1 | 111 | 10/3/2023 |