2021-11-30 14:32:10 +01:00
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace zero.Stores;
|
|
|
|
|
|
|
|
|
|
public class StoresModule : ZeroModule
|
|
|
|
|
{
|
|
|
|
|
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
|
|
|
|
|
{
|
|
|
|
|
services.AddScoped<IStoreContext, StoreContext>();
|
|
|
|
|
services.AddScoped<IStoreOperations, StoreOperations>();
|
|
|
|
|
services.AddSingleton<IStoreCache, StoreCache>();
|
2021-12-01 15:54:11 +01:00
|
|
|
|
|
|
|
|
services.AddOptions<FlavorOptions>();
|
2021-11-30 14:32:10 +01:00
|
|
|
}
|
|
|
|
|
}
|