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()); }
public override Task ProcessInScope(IServiceProvider serviceProvider) { Console.WriteLine("Processing starts here"); _publishService.PublishAsync(DateTime.Now.AddDays(-1).ToString("MMM-yyyy")); return(Task.CompletedTask); }