﻿using FictionHub.Domain.Events;
using MediatR;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace FictionHub.Domain.EventHandlers
{
    public class ChapterEventHandler :
        INotificationHandler<ChapterPublishedEvent>
    {
        public Task Handle(ChapterPublishedEvent notification, CancellationToken cancellationToken)
        {
            // TODO: notify subscribed users.
            // TODO: notify author.

            return Task.CompletedTask;
        }
    }
}
