mirror of https://github.com/EasyAbp/EShop.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
657 B
22 lines
657 B
using System.Threading.Tasks;
|
|
using EasyAbp.PaymentService.Payments;
|
|
using Volo.Abp.DependencyInjection;
|
|
using Volo.Abp.EventBus.Distributed;
|
|
|
|
namespace EasyAbp.EShop.Payments.Payments
|
|
{
|
|
public class TestCreatePaymentEventHandler : IDistributedEventHandler<CreatePaymentEto>, ISingletonDependency
|
|
{
|
|
public bool IsEventPublished { get; protected set; }
|
|
|
|
public CreatePaymentEto CreatePaymentEto { get; protected set; }
|
|
|
|
public Task HandleEventAsync(CreatePaymentEto eventData)
|
|
{
|
|
IsEventPublished = true;
|
|
CreatePaymentEto = eventData;
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|