示例#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"));
        }