Table of Contents

Constructor AgentTaskSchedulerService

Namespace
Oscova.Agents.Tasks
Assembly
Oscova.Agents.dll

AgentTaskSchedulerService(IServiceProvider, NotificationHub<TaskStatusUpdate>, ILogger<AgentTaskSchedulerService>)

Background scheduler that starts enabled agent tasks when their schedules become due.

public AgentTaskSchedulerService(IServiceProvider serviceProvider, NotificationHub<TaskStatusUpdate> taskStatusNotifications, ILogger<AgentTaskSchedulerService> logger)

Parameters

serviceProvider IServiceProvider

The root service provider used to create scoped task services.

taskStatusNotifications NotificationHub<TaskStatusUpdate>

The notification hub used to publish task status updates.

logger ILogger<AgentTaskSchedulerService>

The logger used for scheduler activity and failures.