Exemplo n.º 1
0
        public async Task <bool> Handle(CreateTriggerCommand request, CancellationToken cancellationToken)
        {
            var result = await _jobManager.CreateTriggerAsync(
                request.JobName,
                request.JobGroupName,
                request.TriggerName,
                request.TriggerGroupName,
                request.TriggerDescription,
                request.StartImmediately,
                request.CronExpression,
                request.JobDataMap);

            return(result);
        }