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

            return(Ok("Hello"));
        }