Skip to content

Trigger azure function when new event is commited #860

Answered by ProH4Ck
Taha-Seddik asked this question in Q&A
Discussion options

You must be logged in to vote

Yes! This is a sample subscriber from my latest project used to send emails:

public class ReservationConfirmedEventSubscriber
        : ISubscribeSynchronousTo<ReservationAggregate, ReservationId, ReservationCreatedEvent>
    {
        private readonly IQueryProcessor _queryProcessor;
        private readonly IEmailService _emailService;
        private readonly IUserInfoService _userInfoService;

        public ReservationConfirmedEventSubscriber(IQueryProcessor queryProcessor, IEmailService emailService,
            IUserInfoService userInfoService)
        {
            _queryProcessor = queryProcessor;
            _emailService = emailService;
            _userInfoService = userInfoSe…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rasmus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #789 on June 11, 2021 12:51.