예제 #1
0
		public async Task<ParticipantCountDto> GetCountAsync()
		{
			var modelCount = await _participantDataService.GetCountAsync();
			
			return new ParticipantCountDto
			{
				ParticipantCount = modelCount
			};
		}
예제 #2
0
파일: ReportService.cs 프로젝트: m12e/Stars
        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...");
        }