/// <summary> /// 定义事件处理 /// </summary> /// <param name="event"></param> /// <returns></returns> public async Task Handle(ProductPriceChangedIntegrationEvent @event) { _logger.LogInformation("----- Handling integration event: {IntegrationEventId} at {AppName} - ({@IntegrationEvent})", @event.Id, "Blog.Core", @event); ConsoleHelper.WriteSuccessLine($"----- Handling integration event: {@event.Id} at Blog.Core - ({@event})"); await _userSvc.GetUserNameById(@event.ProductId); }