-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependencyRegistrar.cs
More file actions
21 lines (19 loc) · 851 Bytes
/
DependencyRegistrar.cs
File metadata and controls
21 lines (19 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Autofac;
using Nop.Core.Configuration;
using Nop.Core.Infrastructure;
using Nop.Core.Infrastructure.DependencyManagement;
using Nop.Plugin.Payments.PayuRedirect.Integration;
using Nop.Plugin.Payments.PayuRedirect.Integration.Services;
namespace Nop.Plugin.Payments.PayuRedirect
{
class DependencyRegistrar : IDependencyRegistrar
{
public int Order => 1;
public void Register(ContainerBuilder builder, ITypeFinder typeFinder, NopConfig config)
{
builder.RegisterType<PayuRestClientFactory>().As<IPayuRestClientFactory>().InstancePerLifetimeScope();
builder.RegisterType<PayuAuthorizationService>().As<IPayuAuthorizationService>().InstancePerLifetimeScope();
builder.RegisterType<PayuPaymentService>().As<IPayuPaymentService>().InstancePerLifetimeScope();
}
}
}