This commit is contained in:
Paul Schneider
2021-08-23 03:21:08 +01:00
parent 504f431937
commit cdb9a26d2c
16 changed files with 303 additions and 61 deletions

View File

@ -71,10 +71,12 @@ namespace isnd
var config = s.GetRequiredService<IOptions<UnleashClientSettings>>();
return s.GetRequiredService<Microsoft.AspNetCore.Hosting.IHostingEnvironment>().CreateUnleahClient(config.Value);
});
services.AddSingleton<IPackageManager, PackageManager>();
// _unleashĈlient = env.CreateUnleahClient(unleashClientSettings.Value);
var smtpSettingsconf = Configuration.GetSection("Smtp");
services.Configure<SmtpSettings>(smtpSettingsconf);
var isndSettingsconf = Configuration.GetSection("Nuget");
var isndSettingsconf = Configuration.GetSection("Isn");
services.Configure<IsndSettings>(isndSettingsconf);
var adminStartupListConf = Configuration.GetSection("AdminList");
services.Configure<AdminStartupList>(adminStartupListConf);
@ -85,6 +87,7 @@ namespace isnd
public static IUnleash UnleashĈlient { get; private set; }
public static string ExternalAddress { get; internal set; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.