last ...
This commit is contained in:
@@ -14,7 +14,6 @@ using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using System.Xml;
|
||||
using AutoMapper;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
@@ -3,20 +3,24 @@ using Microsoft.Extensions.Configuration;
|
||||
using xCommons.Configurations;
|
||||
using xCommons.Constants;
|
||||
|
||||
namespace xCommons.Extensions {
|
||||
public static partial class IConfigurationExtensions {
|
||||
namespace xCommons.Extensions
|
||||
{
|
||||
public static partial class IConfigurationExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Retrieve AppConfiguration from Configurations
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <returns></returns>
|
||||
public static XAppConfiguration GetXAppConfiguration (this IConfiguration source) {
|
||||
public static XAppConfiguration GetXAppConfiguration(this IConfiguration source)
|
||||
{
|
||||
//
|
||||
var xMessageResourceTitlesConfigSection = source
|
||||
.GetSection(ConfigurationNodeNames.MESSAGE_RESOURCE_TITLES_NODE);
|
||||
|
||||
//
|
||||
var result = new XAppConfiguration {
|
||||
var result = new XAppConfiguration
|
||||
{
|
||||
Name = source[nameof(XAppConfiguration.Name)],
|
||||
Version = source[nameof(XAppConfiguration.Version)],
|
||||
XPoweredValue = source[nameof(XAppConfiguration.XPoweredValue)],
|
||||
@@ -38,7 +42,8 @@ namespace xCommons.Extensions {
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <returns></returns>
|
||||
public static XSwaggerConfiguration GetXSwaggerConfiguration (this IConfiguration source) {
|
||||
public static XSwaggerConfiguration GetXSwaggerConfiguration(this IConfiguration source)
|
||||
{
|
||||
//
|
||||
var xSwaggerConfigSection = source
|
||||
.GetSection(ConfigurationNodeNames.SWAGGER_NODE);
|
||||
|
||||
Reference in New Issue
Block a user