Browse Source

Register `BookingPaymentCreationAuthorizationHandler`

pull/170/head
gdlcf88 4 years ago
parent
commit
f2db0f41e6
  1. 7
      plugins/Booking/src/EasyAbp.EShop.Payments.Booking.Application/EasyAbp/EShop/Payments/Booking/EShopPaymentsBookingApplicationModule.cs

7
plugins/Booking/src/EasyAbp.EShop.Payments.Booking.Application/EasyAbp/EShop/Payments/Booking/EShopPaymentsBookingApplicationModule.cs

@ -1,5 +1,8 @@
using EasyAbp.BookingService; using EasyAbp.BookingService;
using EasyAbp.EShop.Payments.Booking.Authorization;
using EasyAbp.EShop.Plugins.Booking; using EasyAbp.EShop.Plugins.Booking;
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity; using Volo.Abp.Modularity;
namespace EasyAbp.EShop.Payments.Booking namespace EasyAbp.EShop.Payments.Booking
@ -11,5 +14,9 @@ namespace EasyAbp.EShop.Payments.Booking
)] )]
public class EShopPaymentsBookingApplicationModule : AbpModule public class EShopPaymentsBookingApplicationModule : AbpModule
{ {
public override void PreConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddSingleton<IAuthorizationHandler, BookingPaymentCreationAuthorizationHandler>();
}
} }
} }

Loading…
Cancel
Save