last ...
This commit is contained in:
+42
-22
@@ -1,31 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
using IdentityServer4;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xCommons.Authorization;
|
||||
using xCommons.Constants;
|
||||
using xCommons.Extensions;
|
||||
using xExceptions.Constants;
|
||||
using xIdentityHelper;
|
||||
using xIdentityModels;
|
||||
using xIdentityModels.Configurations;
|
||||
using xIds.Configurations;
|
||||
using xIds.Helpers;
|
||||
using xIds.Constants;
|
||||
using xIds.DbContext;
|
||||
using xIds.Extensions;
|
||||
using xIds.Helpers;
|
||||
using xIds.Interfaces;
|
||||
using xIds.Providers;
|
||||
using IdentityServer4;
|
||||
using xIdentityHelper;
|
||||
using xIdentityModels;
|
||||
using xIds.Extensions;
|
||||
using xIds.Interfaces;
|
||||
using xIds.Validators;
|
||||
using xCommons.Constants;
|
||||
using xMessageService.DI;
|
||||
using xMessageService.Interfaces;
|
||||
using xStorageService.DI;
|
||||
using xCommons.Extensions;
|
||||
using xIds.Configurations;
|
||||
using xExceptions.Constants;
|
||||
using xCommons.Authorization;
|
||||
using System.Collections.Generic;
|
||||
using xMessageService.Interfaces;
|
||||
using xStorageService.Interfaces;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using xIdentityModels.Configurations;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace xIds.DI
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace xIds.DI
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrive XDataService Configurations
|
||||
/// Retrive XDataService Configurations ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <param name="connectionName"></param>
|
||||
@@ -107,6 +107,26 @@ namespace xIds.DI
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve XApiKeyConfiguration Configurations ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <returns></returns>
|
||||
public static XApiKeyConfiguration GetXApiKeyConfiguration(this IConfiguration source)
|
||||
{
|
||||
//
|
||||
var section = source
|
||||
.GetSection(Constants.ConfigurationNodeNames.APIKEY_NODE_NAME);
|
||||
var result = section.Get<XApiKeyConfiguration>();
|
||||
if (result.IsNull())
|
||||
{
|
||||
result = new XApiKeyConfiguration();
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register XDataService Configuration
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user