Skip to content

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.

439 B
Raw Blame
using Grand.Business.Core.Events.Customers;
using Grand.Business.Core.Utilities.Customers;
using Grand.Mediator;

namespace Grand.Business.Core.Extensions;

public static class CustomerEventsExtensions
{
    public static async Task CustomerRegistrationEvent<R>(this IMediator eventPublisher, R request)
        where R : RegistrationRequest
    {
        await eventPublisher.Publish(new CustomerRegistrationEvent<R>(request));
    }
}