Example #1
0
		public async Task<ParticipantCountDto> GetCountAsync()
		{
			var modelCount = await _participantDataService.GetCountAsync();
			
			return new ParticipantCountDto
			{
				ParticipantCount = modelCount
			};
		}
Example #2
0
        public async Task SendAsync()
        {
            _logger.Information("Sending report...");

            var participantCount = await _participantService.GetCountAsync();

            var messageModel = new ParticipantReportMessageModel
            {
                ParticipantCount = participantCount
            };

            _rabbitPublicationService.PublishMessage(InterserviceQueueTypeEnum.Deneb, messageModel);

            _logger.Information("Report was sucessfully sent...");
        }