Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Business.Core.Events.Checkout.Shipping;
using Grand.Domain.Shipping;
using Grand.Mediator;
namespace Grand.Business.Core.Extensions;
public static class ShippingEventPublisherExtensions
{
/// <summary>
/// Publishes the shipment sent event.
/// </summary>
/// <param name="mediator">The event publisher.</param>
/// <param name="shipment">The shipment.</param>
public static async Task PublishShipmentSent(this IMediator mediator, Shipment shipment)
{
await mediator.Publish(new ShipmentSentEvent(shipment));
}
/// <summary>
/// Publishes the shipment delivered event.
/// </summary>
/// <param name="mediator">The event publisher.</param>
/// <param name="shipment">The shipment.</param>
public static async Task PublishShipmentDelivered(this IMediator mediator, Shipment shipment)
{
await mediator.Publish(new ShipmentDeliveredEvent(shipment));
}
}