示例#1
0
        public async Task <IActionResult> Push([FromBody] TestDto dto)
        {
            await _pubService.PublishAsync(dto);

            return(Ok(dto));
        }
        public async Task <IActionResult> Post()
        {
            await _publishService.PublishAsync(DateTime.Now.AddMonths(-1).ToString("MMM-yyyy"));

            return(NoContent());
        }
示例#3
0
 public override Task ProcessInScope(IServiceProvider serviceProvider)
 {
     Console.WriteLine("Processing starts here");
     _publishService.PublishAsync(DateTime.Now.AddDays(-1).ToString("MMM-yyyy"));
     return(Task.CompletedTask);
 }