You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces a `CancellationToken` parameter to various asynchronous methods across multiple files, enhancing control over task cancellation and improving responsiveness. Key updates include:
- `InitProjectFile` in `ProjectFileBuilder.cs` now supports cancellation for file operations.
- Similar updates in `SampleContentBuilder.cs`, `SiteGenerator.cs`, and `TemplateService.cs` for long-running tasks.
- Logging statements have been modified to ensure consistent logging without null checks on the logger.
- The main execution flow in `Program.cs` has been updated to manage cancellation tokens, allowing for graceful shutdowns.
These changes collectively improve the application's resource management and logging consistency.
0 commit comments