|
|
|
@ -1,4 +1,7 @@ |
|
|
|
using EasyAbp.EShop.Stores; |
|
|
|
using EasyAbp.EShop.Payments.Payments; |
|
|
|
using EasyAbp.EShop.Stores; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
|
|
|
|
namespace EasyAbp.EShop.Payments |
|
|
|
@ -9,6 +12,11 @@ namespace EasyAbp.EShop.Payments |
|
|
|
)] |
|
|
|
public class EShopPaymentsDomainModule : AbpModule |
|
|
|
{ |
|
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|
|
|
{ |
|
|
|
var resolver = context.ServiceProvider.GetService<IPaymentServiceResolver>(); |
|
|
|
|
|
|
|
resolver.TryRegisterProviderAsync("Free", typeof(FreePaymentServiceProvider)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|