Initial commit - ECommerce.RCL
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using ECommerceModule.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace ECommerceModule.Config
|
||||
{
|
||||
public static class RegisterServices
|
||||
{
|
||||
public static IServiceCollection ECommerceModuleServices(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<ShopStateService>();
|
||||
services.AddScoped<ProductAPIConsumer>();
|
||||
services.AddScoped<CategoryAPIConsumer>();
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user