Ejemplo n.º 1
0
        /// <summary>
        /// Считывание настроек из appsettings.json
        /// </summary>
        /// <param name="Configuration">Переменная конфигурации для взаимодействия с appconfig.json</param>
        public SwaggerSettings(IConfiguration Configuration)
        {
            SwaggerSettings swaggerConf = Configuration.GetSection("SwaggerSettings").Get <SwaggerSettings>();

            this.RoutePrefix = swaggerConf.RoutePrefix;
            this.Swagger     = swaggerConf.Swagger;
        }
Ejemplo n.º 2
0
 public SwaggerSettings()
 {
     RoutePrefix = "";
     Swagger     = new SwaggerElementDescription();
 }