Beispiel #1
0
 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);
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public async Task Process(ProjectJoinedIntergrationEvent @event)
 {
     await Task.CompletedTask;
 }