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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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;
        }