Official .NET SDK for the EdgeCron webhook scheduling and callback delivery platform.
Schedule delayed HTTP requests, deliver webhooks reliably, and automatically retry failed calls — with full execution history so nothing gets lost.
中文文档:README.zh-CN.md
dotnet add package EdgeCronusing EdgeCron;
var client = new EdgeCronClient("ak_xxx", "sk_xxx");
try
{
var schedule = await client.Schedules.CreateAsync("my-schedule", "*/5 * * * *");
Console.WriteLine(schedule.Id);
}
catch (ApiErrorException error)
{
Console.WriteLine($"{error.Code} {error.Message} {error.RequestId}");
}| Client method | Description |
|---|---|
client.Schedules.* |
Cron schedule CRUD, pause, resume |
client.Tasks.* |
Task execution instances, cancel |
client.Events.* |
Event publishing and management |
client.Endpoints.* |
Webhook endpoint configuration |
client.Deliveries.* |
Delivery attempt records and retry |
client.Retries.* |
Retry policies and jobs |
client.Subscription.* |
Quota, usage, and resource limits |
options.BaseUrl— override API base URLoptions.HttpClient— customHttpClient
Service-side business errors throw ApiErrorException.
using EdgeCron;
try
{
await client.Schedules.GetAsync(123);
}
catch (ApiErrorException error)
{
Console.WriteLine($"{error.Code} {error.Message} {error.RequestId}");
}This is a server-side SDK. Do not expose secret in browsers or mobile apps.