MakoIoT.Device.Services.Scheduler
1.0.35.51773
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MakoIoT.Device.Services.Scheduler --version 1.0.35.51773
NuGet\Install-Package MakoIoT.Device.Services.Scheduler -Version 1.0.35.51773
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="MakoIoT.Device.Services.Scheduler" Version="1.0.35.51773" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MakoIoT.Device.Services.Scheduler --version 1.0.35.51773
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MakoIoT.Device.Services.Scheduler, 1.0.35.51773"
#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 MakoIoT.Device.Services.Scheduler as a Cake Addin #addin nuget:?package=MakoIoT.Device.Services.Scheduler&version=1.0.35.51773 // Install MakoIoT.Device.Services.Scheduler as a Cake Tool #tool nuget:?package=MakoIoT.Device.Services.Scheduler&version=1.0.35.51773
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Mako-IoT.Device.Services.Scheduler
Launches given tasks at configured intervals.
Usage
- Implement your task
public class MyServiceTask : ITask
{
private readonly IMyService _myService;
public string Id { get; }
public MyServiceTask(IMyService myService)
{
Id = nameof(MyServiceTask); //give task a name
_myService = myService; //inject service to call
}
public void Execute()
{
_myService.DoSomething(); //call the service
}
}
- Configure Scheduler
DeviceBuilder.Create()
.AddLogging(new LoggerConfig(LogLevel.Information))
.AddConfiguration(cfg =>
{
cfg.WriteDefault(SchedulerConfig.SectionName, new SchedulerConfig
{
//run the task every 30 seconds
Tasks = new[]{ new SchedulerTaskConfig { TaskId = nameof(MyServiceTask), IntervalMs = 30000 }}
});
.AddScheduler(options =>
{
options.AddTask(typeof(MyServiceTask), nameof(MyServiceTask));
})
.Build()
.Start();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- MakoIoT.Device.Services.Interface (>= 1.0.36.21434)
- nanoFramework.CoreLibrary (>= 1.14.2)
- nanoFramework.DependencyInjection (>= 1.0.35)
- nanoFramework.Logging (>= 1.1.63)
- nanoFramework.System.Collections (>= 1.5.18)
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.52.7925 | 115 | 10/18/2024 |
1.0.51.59910 | 81 | 9/26/2024 |
1.0.50.19720 | 91 | 8/27/2024 |
1.0.49.49532 | 107 | 8/10/2024 |
1.0.48.53405 | 50 | 8/5/2024 |
1.0.47.4363 | 98 | 6/4/2024 |
1.0.46.39899 | 112 | 3/23/2024 |
1.0.45.38276 | 190 | 1/6/2024 |
1.0.44.31074 | 135 | 12/30/2023 |
1.0.43.8795 | 182 | 12/2/2023 |
1.0.42.16726 | 152 | 12/1/2023 |
1.0.41.16532 | 140 | 11/17/2023 |
1.0.40.16754 | 124 | 11/16/2023 |
1.0.39.30899 | 141 | 11/11/2023 |
1.0.38.59907 | 123 | 11/10/2023 |
1.0.37.47489 | 127 | 11/9/2023 |
1.0.36.6724 | 145 | 11/8/2023 |
1.0.35.51773 | 149 | 10/6/2023 |
1.0.33.31618 | 168 | 10/6/2023 |
1.0.31.52146 | 218 | 5/25/2023 |
1.0.30.386 | 174 | 5/24/2023 |
1.0.28.55038 | 150 | 5/22/2023 |
1.0.27.18384 | 171 | 5/22/2023 |
1.0.26.28194 | 190 | 5/22/2023 |
1.0.25.47144 | 170 | 5/22/2023 |
1.0.24.48714 | 180 | 5/22/2023 |