public async Task Handle(ProjectJoinedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectJoinedIntegrationEvent { Company = notification.Company, Introduction = notification.Introduction, Contributor = notification.Contributor }; await _capPublisher.PublishAsync("project.api.join.project", @event, cancellationToken : cancellationToken); }
public async Task Handle(ProjectJoinedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectJoinedIntegrationEvent { Company = notification.Company, Introduction = notification.Introduction, Contributor = notification.Contributor, Avatar = notification.Avatar }; await _capPublisher.PublishAsync("finbook.projectapi.project_joined", @event); }
public Task Handle(ProjectJoinedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectJoinedIntegrationEvent { Introduction = notification.Introduction, Avatar = notification.Avatar, MyProperty = notification.Contributor }; capPublisher.Publish("finbook.projectapi.projectJoined", @event); return(Task.CompletedTask); }
public Task Handle(ProjectJoinedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectJoinedIntegrationEvent() { Company = notification.Company, Introduction = notification.Introduction, ProjectContributor = notification.ProjectContributor, }; _capPublisher.Publish("finbook.projectapi.projectjoined", @event); return(Task.CompletedTask); }
public async Task Handle(ProjectJoinedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectJoinedIntegrationEvent { Company = notification.Company, Avatar = notification.Avatar, Introduction = notification.Introduction, Contributor = notification.Contributor }; await _capPublisher.PublishAsync("zsq.onlinePrject.projectapi.projectviewed", @event); return; }