Skip to main content

C# SDK

The C# SDK for writing TaskDaemon handlers.

Installation

Basic Usage

Task Record

Result Types

Usage:

Complete Example

Error Handling

Exceptions are automatically caught and converted to non-retryable errors:
For explicit error handling:

Async Handlers

Dockerfile

For a self-contained single-file deployment:

Handler Configuration

Requirements

  • .NET 6.0+ (uses records and file-scoped namespaces)
  • System.Text.Json for serialization (built-in)