Skip to content

edgecron/edgecron-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EdgeCron .NET SDK

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

Install

dotnet add package EdgeCron

Quick Start

using 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}");
}

Modules

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

Configuration

  • options.BaseUrl — override API base URL
  • options.HttpClient — custom HttpClient

Error Handling

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}");
}

Security Notice

This is a server-side SDK. Do not expose secret in browsers or mobile apps.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages