MakoIoT.Device.Services.Scheduler 1.0.46.39899

There is a newer version of this package available.
See the version list below for details.
dotnet add package MakoIoT.Device.Services.Scheduler --version 1.0.46.39899
                    
NuGet\Install-Package MakoIoT.Device.Services.Scheduler -Version 1.0.46.39899
                    
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.46.39899" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MakoIoT.Device.Services.Scheduler" Version="1.0.46.39899" />
                    
Directory.Packages.props
<PackageReference Include="MakoIoT.Device.Services.Scheduler" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MakoIoT.Device.Services.Scheduler --version 1.0.46.39899
                    
#r "nuget: MakoIoT.Device.Services.Scheduler, 1.0.46.39899"
                    
#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.
#:package MakoIoT.Device.Services.Scheduler@1.0.46.39899
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MakoIoT.Device.Services.Scheduler&version=1.0.46.39899
                    
Install as a Cake Addin
#tool nuget:?package=MakoIoT.Device.Services.Scheduler&version=1.0.46.39899
                    
Install as a Cake Tool

Mako-IoT.Device.Services.Scheduler

Launches given tasks at configured intervals.

Usage

  1. 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
    }
}
  1. 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();

See DeviceBuilder readme

Product 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.

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.63.54052 114 7/16/2025
1.0.62.44277 181 4/3/2025
1.0.61.9456 175 4/2/2025
1.0.60.30122 175 3/11/2025
1.0.58.12630 130 2/27/2025
1.0.57.9405 137 2/26/2025
1.0.56.44264 127 2/20/2025
1.0.55.15844 137 2/18/2025
1.0.54.21053 126 11/28/2024
1.0.53.62836 127 11/25/2024
1.0.52.7925 164 10/18/2024
1.0.51.59910 131 9/26/2024
1.0.50.19720 132 8/27/2024
1.0.49.49532 143 8/10/2024
1.0.48.53405 93 8/5/2024
1.0.47.4363 132 6/4/2024
1.0.46.39899 144 3/23/2024
1.0.45.38276 226 1/6/2024
1.0.44.31074 164 12/30/2023
1.0.43.8795 203 12/2/2023
1.0.42.16726 172 12/1/2023
1.0.41.16532 164 11/17/2023
1.0.40.16754 145 11/16/2023
1.0.39.30899 166 11/11/2023
1.0.38.59907 145 11/10/2023
1.0.37.47489 152 11/9/2023
1.0.36.6724 171 11/8/2023
1.0.35.51773 176 10/6/2023
1.0.33.31618 198 10/6/2023
1.0.31.52146 263 5/25/2023
1.0.30.386 220 5/24/2023
1.0.28.55038 194 5/22/2023
1.0.27.18384 221 5/22/2023
1.0.26.28194 232 5/22/2023
1.0.25.47144 214 5/22/2023
1.0.24.48714 243 5/22/2023