public Task Handle(ProjectViewedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectViewedIntegrationEvent { Company = notification.Company, Introduction = notification.Introduction, Viewer = notification.ProjectViewer }; _capPublisher.Publish("findbook.projectapi.projectview ", @event); return(Task.CompletedTask); }
public async Task Handle(ProjectViewEvent notification, CancellationToken cancellationToken) { var @event = new ProjectViewedIntegrationEvent { Company = notification.Company, Introduction = notification.Introduction, Viewer = notification.Viewer }; await _capPublisher.PublishAsync("project.api.view.project", @event, cancellationToken : cancellationToken); }
public async Task Handle(ProjectViewedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectViewedIntegrationEvent { Company = notification.Company, Introduction = notification.Introduction, Viewer = notification.Viewer }; await _capPublisher.PublishAsync("finbook.projectapi.projectviewed", @event); }
public async Task Handle(ProjectViewedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectViewedIntegrationEvent { Company = notification.Company, Avatar = notification.Avatar, Introduction = notification.Introduction, Viewer = notification.Viewer }; await _capPublisher.PublishAsync("zsq.onlinePrject.projectapi.projectjoined", @event); return; }