public async Task HandleAsync(ResultProcess @event, ICorrelationContext context) { await _lufHubService.PublishToAllAsync(@event.Resource, new { id = @event.Id, name = @event.Name }); }
public async Task <IActionResult> Test() { await _lufHubService.PublishToAllAsync("Hello everyone", new { id = 1, name = "Duong" }); return(Ok("Hello")); }