33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using GerstITS.Authentication.OpenId;
|
|
using GerstITS.Data.EntityFramework;
|
|
using GerstITS.System.Configurations;
|
|
using GerstITS.Web.Api.Builder;
|
|
using GerstITS.Web.Api.Swagger;
|
|
|
|
namespace GerstITS.Examples.Api.Configurations;
|
|
|
|
internal sealed class WebApiConfiguration : IConfiguration
|
|
{
|
|
#region Properties
|
|
|
|
public IServerConfiguration Server { get; }
|
|
public IOpenIdConfiguration OpenId { get; }
|
|
public ISwaggerConfiguration Swagger { get; set; }
|
|
public IEntityFrameworkMigrationConfiguration EntityFrameworkMigration { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public WebApiConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
|
|
{
|
|
var prefix = this.ToConfigurationPrefix();
|
|
|
|
EntityFrameworkMigration = new EntityFrameworkMigrationConfiguration(prefix, configuration);
|
|
//OpenId = new OpenIdConfiguration(prefix, configuration);
|
|
Server = new ServerConfiguration(prefix, configuration);
|
|
Swagger = new SwaggerConfiguration(prefix, configuration);
|
|
}
|
|
|
|
#endregion
|
|
} |