Add configurations and update packages
This commit is contained in:
22
GerstITS.Examples.Api/Module.Configurations.cs
Normal file
22
GerstITS.Examples.Api/Module.Configurations.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using GerstITS.Examples.Api.Configurations;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace GerstITS.Examples.Api
|
||||
{
|
||||
public sealed partial class Module
|
||||
{
|
||||
#region Methods
|
||||
|
||||
private static void RegisterConfigurations(IServiceCollection container)
|
||||
{
|
||||
container.AddSingleton<WebApiConfiguration>();
|
||||
|
||||
container.AddSingleton(c => c.GetService<WebApiConfiguration>().EntityFrameworkMigration);
|
||||
container.AddSingleton(c => c.GetService<WebApiConfiguration>().OpenId);
|
||||
container.AddSingleton(c => c.GetService<WebApiConfiguration>().Server);
|
||||
container.AddSingleton(c => c.GetService<WebApiConfiguration>().Swagger);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user