using ECMJobRunner.Application.Common.Dtos; using ECMJobRunner.Application.DEXJob.Commands; using MediatR; namespace ECMJobRunner.WebCron.Extensions; public static class DtoExtensions { public static string JobId(this CfgProfileDto profile) { return $"profile-{profile.Id}-{profile.ProfileName.Replace(' ', '_').ToLowerInvariant()}"; } public static TriggeringDEXJobBatchCommand ToJob(this CfgProfileDto profile) { return new TriggeringDEXJobBatchCommand { ProfileId = profile.Id, }; } }