Newer
Older
CommandsEvents / src / Shipping / CreateShippingLabelHandler.cs
@Derek Comartin Derek Comartin on 18 Mar 2022 602 bytes Init
using System;
using System.Threading.Tasks;
using Billing.Contracts;
using NServiceBus;
using Sales.Contracts;
using Shipping.Contracts;

namespace Shipping
{
    public class CreateShippingLabelHandler :IHandleMessages<OrderPlaced>
    {
        private readonly ShippingDbContext _dbContext;

        public CreateShippingLabelHandler(ShippingDbContext dbContext)
        {
            _dbContext = dbContext;
        }

        public Task Handle(OrderPlaced message, IMessageHandlerContext context)
        {
            // Do some work here
            return Task.CompletedTask;
        }
    }
}