C# SDK
The C# SDK for writing TaskDaemon handlers.Installation
Install the published TaskDaemon.Handler 0.1.2 package in a .NET 8 console application:Program.cs. The Dockerfiles below assume this application project is named Handler.csproj; build from the Handler/ directory.
Source installation
To use the release source instead, replace the package reference with a project reference:attempt: 1; retries require a valid retryable error and remaining stored budget.
Basic Usage
Task Record
Result Types
Complete Example
Error Handling
Exceptions are automatically caught and converted to non-retryable errors:HTTP Calls
The SDK exposes a synchronousHandler.Run callback. If you use an asynchronous client inside it, wait for that operation before returning one response:
Dockerfile
Handler Configuration
Requirements
- .NET 8.0+ (the published package targets
net8.0) - System.Text.Json for serialization (built-in)