2021-11-30 14:32:10 +01:00
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace zero.Applications;
|
|
|
|
|
|
2022-01-06 18:10:58 +01:00
|
|
|
internal class ZeroApplicationModule : ZeroModule
|
2021-11-30 14:32:10 +01:00
|
|
|
{
|
|
|
|
|
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
|
|
|
|
|
{
|
|
|
|
|
services.AddScoped<IApplicationResolver, ApplicationResolver>();
|
|
|
|
|
services.AddScoped<IApplicationStore, ApplicationStore>();
|
2021-12-06 13:29:15 +01:00
|
|
|
services.AddScoped<IApplicationRegistry, ApplicationRegistry>();
|
|
|
|
|
//services.AddOptions<ApplicationOptions>().Bind(configuration.GetSection("Zero:Applications"));
|
2021-11-30 14:32:10 +01:00
|
|
|
}
|
|
|
|
|
}
|