- Add CronSchedule property to CfgProfileDto for scheduling support - Create ProfileSqlJobDto for SQL job execution data transfer - Update TriggeringDEXJobBatchCommand to accept ProfileId and Jobs collection - Make TriggeringDEXJobBatchCommand public for Hangfire job activation - Update Application DependencyInjection with required service registrations
68 lines
1.7 KiB
C#
68 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ECMJobRunner.Application.Common.Dtos
|
|
{
|
|
/// <summary>
|
|
/// Data Transfer Object for CfgProfile entity
|
|
/// Used for querying and returning profile data
|
|
/// </summary>
|
|
public record CfgProfileDto
|
|
{
|
|
/// <summary>
|
|
/// Profile ID
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Active / Inactive switch
|
|
/// </summary>
|
|
public bool Active { get; set; }
|
|
|
|
/// <summary>
|
|
/// Profile name
|
|
/// </summary>
|
|
public string ProfileName { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Profile type: 0 = ADSync; 1 = GraphQL; 2 = SQL-Job; 3 = SQL and REST-Job
|
|
/// </summary>
|
|
public byte TypeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Schedule in Cron format
|
|
/// </summary>
|
|
public string Schedule { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Optional description
|
|
/// </summary>
|
|
public string? Comment { get; set; }
|
|
|
|
/// <summary>
|
|
/// Created by
|
|
/// </summary>
|
|
public string AddedWho { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Created at
|
|
/// </summary>
|
|
public DateTime AddedWhen { get; set; }
|
|
|
|
/// <summary>
|
|
/// Modified by
|
|
/// </summary>
|
|
public string? ChangedWho { get; set; }
|
|
|
|
/// <summary>
|
|
/// Modified at
|
|
/// </summary>
|
|
public DateTime? ChangedWhen { get; set; }
|
|
|
|
/// <summary>
|
|
/// SQL Jobs associated with this profile
|
|
/// </summary>
|
|
public List<ProfileSqlJobDto>? SqlJobs { get; set; }
|
|
}
|
|
}
|