Пример #1
0
        public async Task <string> ProcessAsync()
        {
            var reportId = Guid.NewGuid().ToString();
            var report   = new Report
            {
                Id      = reportId,
                Content = string.Empty,
                Status  = ReportStatusEnum.NotStarted
            };

            await StoreReportStatusAsync(report);

            await _messagePublisher.PublishMessageToTopicAsync(reportId, _reportRequestsTopic);

            return(GenerateReportUrl(reportId));
        }