16 lines
481 B
C#
16 lines
481 B
C#
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>();
|
|
|
|
services.AddOptions<FlavorOptions>();
|
|
}
|
|
} |