22 lines
747 B
C#
22 lines
747 B
C#
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
|
|
}
|
|
} |