# trgamer-tech/fluenttaskscheduler architecture

> Architecture diagram of the GitHub repository trgamer-tech/fluenttaskscheduler, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/trgamer-tech/fluenttaskscheduler
- Repository: https://github.com/trgamer-tech/fluenttaskscheduler

## Overview

FluentTaskScheduler is a WinUI 3 desktop client for managing Windows Task Scheduler. The main workflow is users creating or editing tasks, configuring triggers and actions, then saving and managing them through the Windows scheduler; the dashboard and history expose execution status and outcomes. Distinct product areas include folders, task pipelines, snoozing, reusable scripts and templates, settings, and system-tray integration. The graph uses README claims and shown source references; some feature implementations are unsampled, so their internal links are omitted.

Main entry points: [`Services/ITaskService.cs`](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/ITaskService.cs) (Task service API), [`MainPage.xaml.cs`](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/MainPage.xaml.cs) (Task workspace), [`Services/TaskScheduling/TaskSchedulerConnection.cs`](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskSchedulerConnection.cs) (Scheduler connection), [`Services/SettingsService.cs`](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/SettingsService.cs) (Settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_task_mgmt["Task management"]
  node_main_ui["Task workspace<br/>[MainPage.xaml.cs]"]
  node_main_vm["Task view model<br/>[MainViewModel.cs]"]
  node_task_model["Scheduled task model"]
  node_trigger_editor["Trigger editor"]
  node_folders["Folder management<br/>[FolderService.cs]"]
  node_scripts["Script library"]
  node_templates["Task templates"]
end

subgraph group_scheduler["Scheduling runtime"]
  node_task_api["Task service API<br/>[ITaskService.cs]"]
  node_crud["Task operations<br/>[TaskCrudService.cs]"]
  node_definition["Task definitions"]
  node_connection["Scheduler connection"]
  node_xml_io["Task XML import/export"]
end

subgraph group_insights["Monitoring and automation"]
  node_dashboard["Dashboard"]
  node_event_log["Execution history"]
  node_history_model["History records"]
  node_pipeline["Task pipelines"]
  node_pipeline_model["Pipeline configuration<br/>[TaskPipeline.cs]"]
  node_snooze["Global snooze<br/>[SnoozeService.cs]"]
  node_task_snooze["Task snooze"]
end

subgraph group_app_services["Application services"]
  node_settings[("Settings<br/>[SettingsService.cs]")]
  node_notifications["Notifications"]
  node_tray["System tray<br/>[TrayIconService.cs]"]
  node_localization["Localization"]
  node_reminders["Task reminders<br/>[ReminderService.cs]"]
end

node_user(("User"))
node_scheduler_ext{{"Windows Task Scheduler"}}

node_user -->|"manages tasks"| node_main_ui
node_main_ui -->|"uses"| node_main_vm
node_main_vm -.->|"requests tasks"| node_task_api
node_task_api -->|"delegates CRUD"| node_crud
node_crud -->|"builds definitions"| node_definition
node_crud -->|"opens sessions"| node_connection
node_connection -->|"opens session"| node_scheduler_ext
node_folders -->|"opens sessions"| node_connection
node_trigger_editor -->|"edits triggers"| node_task_model
node_main_ui -->|"configures triggers"| node_trigger_editor
node_task_api -->|"exposes import/export"| node_xml_io
node_dashboard -->|"loads tasks"| node_task_api
node_dashboard -.->|"loads history"| node_event_log
node_event_log -->|"opens sessions"| node_connection
node_event_log -->|"maps records"| node_history_model
node_pipeline -->|"runs targets"| node_task_api
node_pipeline -->|"reads configuration"| node_pipeline_model
node_main_ui -->|"configures chaining"| node_pipeline_model
node_snooze -->|"persists state"| node_settings
node_snooze -->|"disables tasks"| node_task_api
node_task_snooze -->|"snoozes tasks"| node_task_api
node_scripts -.->|"offers scripts"| node_user
node_templates -->|"provides templates"| node_main_ui
node_settings -.->|"stores preferences"| node_user
node_notifications -->|"shows alerts"| node_user
node_tray -->|"reads preferences"| node_settings
node_tray -->|"offers tray controls"| node_user
node_localization -->|"reads language"| node_settings
node_reminders -->|"alerts upcoming tasks"| node_user

click node_main_ui "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/MainPage.xaml.cs"
click node_main_vm "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/ViewModels/MainViewModel.cs"
click node_task_model "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Models/ScheduledTaskModel.cs"
click node_trigger_editor "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Controls/TriggerEditorControl.Handlers.cs"
click node_folders "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/FolderService.cs"
click node_task_api "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/ITaskService.cs"
click node_crud "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskCrudService.cs"
click node_definition "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskDefinitionBuilder.cs"
click node_connection "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskSchedulerConnection.cs"
click node_xml_io "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskXmlImportExportService.cs"
click node_dashboard "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/ViewModels/DashboardViewModel.cs"
click node_event_log "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskEventLogService.cs"
click node_history_model "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Models/TaskHistoryEntry.cs"
click node_pipeline "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskPipelineService.cs"
click node_pipeline_model "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Models/TaskPipeline.cs"
click node_snooze "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/SnoozeService.cs"
click node_task_snooze "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskSnoozeService.cs"
click node_scripts "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/ViewModels/ScriptLibraryViewModel.cs"
click node_templates "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/ViewModels/TaskTemplatesViewModel.cs"
click node_settings "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/SettingsService.cs"
click node_notifications "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/NotificationService.cs"
click node_tray "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TrayIconService.cs"
click node_localization "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/LocalizationService.cs"
click node_reminders "https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/ReminderService.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main_ui,node_main_vm,node_task_model,node_trigger_editor,node_folders,node_scripts,node_templates,node_user toneBlue
class node_task_api,node_crud,node_definition,node_connection,node_xml_io toneAmber
class node_dashboard,node_event_log,node_history_model,node_pipeline,node_pipeline_model,node_snooze,node_task_snooze toneMint
class node_settings,node_notifications,node_tray,node_localization,node_reminders,node_scheduler_ext toneRose
```

## Components

### Task management

- [Task workspace](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/MainPage.xaml.cs): `MainPage.xaml.cs`
- [Task view model](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/ViewModels/MainViewModel.cs): `ViewModels/MainViewModel.cs`
- [Scheduled task model](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Models/ScheduledTaskModel.cs): `Models/ScheduledTaskModel.cs`
- [Trigger editor](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Controls/TriggerEditorControl.Handlers.cs): `Controls/TriggerEditorControl.Handlers.cs`
- [Folder management](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/FolderService.cs): `Services/TaskScheduling/FolderService.cs`
- [Script library](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/ViewModels/ScriptLibraryViewModel.cs): `ViewModels/ScriptLibraryViewModel.cs`
- [Task templates](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/ViewModels/TaskTemplatesViewModel.cs): `ViewModels/TaskTemplatesViewModel.cs`

### Scheduling runtime

- [Task service API](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/ITaskService.cs): `Services/ITaskService.cs`
- [Task operations](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskCrudService.cs): `Services/TaskScheduling/TaskCrudService.cs`
- [Task definitions](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskDefinitionBuilder.cs): `Services/TaskScheduling/TaskDefinitionBuilder.cs`
- [Scheduler connection](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskSchedulerConnection.cs): `Services/TaskScheduling/TaskSchedulerConnection.cs`
- [Task XML import/export](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskXmlImportExportService.cs): `Services/TaskScheduling/TaskXmlImportExportService.cs`

### Monitoring and automation

- [Dashboard](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/ViewModels/DashboardViewModel.cs): `ViewModels/DashboardViewModel.cs`
- [Execution history](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskScheduling/TaskEventLogService.cs): `Services/TaskScheduling/TaskEventLogService.cs`
- [History records](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Models/TaskHistoryEntry.cs): `Models/TaskHistoryEntry.cs`
- [Task pipelines](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskPipelineService.cs): `Services/TaskPipelineService.cs`
- [Pipeline configuration](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Models/TaskPipeline.cs): `Models/TaskPipeline.cs`
- [Global snooze](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/SnoozeService.cs): `Services/SnoozeService.cs`
- [Task snooze](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TaskSnoozeService.cs): `Services/TaskSnoozeService.cs`

### Application services

- [Settings](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/SettingsService.cs): `Services/SettingsService.cs`
- [Notifications](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/NotificationService.cs): `Services/NotificationService.cs`
- [System tray](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/TrayIconService.cs): `Services/TrayIconService.cs`
- [Localization](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/LocalizationService.cs): `Services/LocalizationService.cs`
- [Task reminders](https://github.com/trgamer-tech/fluenttaskscheduler/blob/main/Services/ReminderService.cs): `Services/ReminderService.cs`

### Other components

- **User**
- **Windows Task Scheduler**

## Connections

- User → Task workspace: manages tasks (evidence: `README.md`)
- Task workspace → Task view model: uses
- Task view model → Task service API: requests tasks
- Task service API → Task operations: delegates CRUD (evidence: `Services/ITaskService.cs`)
- Task operations → Task definitions: builds definitions (evidence: `Services/TaskScheduling/TaskCrudService.cs`)
- Task operations → Scheduler connection: opens sessions (evidence: `Services/TaskScheduling/TaskCrudService.cs`)
- Scheduler connection → Windows Task Scheduler: opens session (evidence: `Services/TaskScheduling/TaskSchedulerConnection.cs`)
- Folder management → Scheduler connection: opens sessions (evidence: `Services/TaskScheduling/FolderService.cs`)
- Trigger editor → Scheduled task model: edits triggers (evidence: `Controls/TriggerEditorControl.Handlers.cs`)
- Task workspace → Trigger editor: configures triggers (evidence: `README.md`)
- Task service API → Task XML import/export: exposes import/export (evidence: `Services/ITaskService.cs`)
- Dashboard → Task service API: loads tasks (evidence: `ViewModels/DashboardViewModel.cs`)
- Dashboard → Execution history: loads history
- Execution history → Scheduler connection: opens sessions (evidence: `Services/TaskScheduling/TaskEventLogService.cs`)
- Execution history → History records: maps records (evidence: `Services/TaskScheduling/TaskEventLogService.cs`)
- Task pipelines → Task service API: runs targets (evidence: `Services/TaskPipelineService.cs`)
- Task pipelines → Pipeline configuration: reads configuration (evidence: `Services/TaskPipelineService.cs`)
- Task workspace → Pipeline configuration: configures chaining
- Global snooze → Settings: persists state (evidence: `Services/SnoozeService.cs`)
- Global snooze → Task service API: disables tasks (evidence: `Services/SnoozeService.cs`)
- Task snooze → Task service API: snoozes tasks (evidence: `Services/TaskSnoozeService.cs`)
- Script library → User: offers scripts
- Task templates → Task workspace: provides templates
- Settings → User: stores preferences
- Notifications → User: shows alerts (evidence: `README.md`)
- System tray → Settings: reads preferences (evidence: `Services/TrayIconService.cs`)
- System tray → User: offers tray controls (evidence: `README.md`)
- Localization → Settings: reads language (evidence: `Services/LocalizationService.cs`)
- Task reminders → User: alerts upcoming tasks (evidence: `README.md`)
