public async Task Handle(ProjectJoinedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectJoinedIntergrationEvent() { ProjectId = notification.ProjectContributor.ProjectId, UserId = notification.ProjectContributor.UserId, UserName = notification.ProjectContributor.UserName }; await _capPublisher.PublishAsync("projectapi.projectjoined", @event); }
public Task Handle(ProjectJoinedEvent notification, CancellationToken cancellationToken) { var @event = new ProjectJoinedIntergrationEvent { Company = notification.Company , Introduction = notification.Introduction , Contributor = notification.Contributor }; _capPublisher.Publish("finbook.projectapi.projectjoined", @event); return(Task.CompletedTask); }
public async Task Process(ProjectJoinedIntergrationEvent @event) { await Task.CompletedTask; }