You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.7 KiB
1.7 KiB
LINGYUN.Abp.BackgroundTasks.Jobs
Common job module for background tasks (queue).
Job List
- ConsoleJob: Console output
- HttpRequestJob: HTTP request
- SendEmailJob: Send email
- SendSmsJob: Send SMS
- ServiceInvocationJob: Service invocation (HTTP request extension)
- SleepJob: Sleep, delay job execution
Configuration and Usage
Module reference:
[DependsOn(typeof(AbpBackgroundTasksJobsModule))]
public class YouProjectModule : AbpModule
{
// other
}
Features
Console Job
- Output messages to console with timestamp
- Configurable message content
HTTP Request Job
- Support for various HTTP methods (GET, PUT, POST, PATCH, OPTIONS, DELETE)
- Custom headers and content type
- Request data handling
- Culture support
Email Job
- Send emails with customizable:
- Recipients
- Subject
- From address
- Body content
- Email templates
- Template model and context
- Culture support
SMS Job
- Send SMS messages with:
- Phone number targeting
- Message content
- Custom properties
Service Invocation Job
- Extended HTTP request functionality
- Support for different providers (http, dapr)
- Multi-tenant support
- Service name configuration
- Dapr integration with App ID support
Sleep Job
- Delay job execution
- Configurable delay duration in milliseconds
- Default 20-second delay if not specified