apply sorting ...

This commit is contained in:
2026-09-06 00:19:33 +03:30
parent ca2952dfa5
commit 277ef913fc
30 changed files with 181 additions and 176 deletions
+15 -12
View File
@@ -1,17 +1,17 @@
using System;
using IdentityModel.AspNetCore.OAuth2Introspection;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;
using xCommons.Extensions;
using xCommons.Authorization;
using Microsoft.AspNetCore.Http;
using xIdentityService.Security;
using xIdentityService.Constants;
using xIdentityService.Providers;
using xIdentityService.Interfaces;
using Microsoft.AspNetCore.Builder;
using xIdentityService.Configuration;
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using xCommons.Authorization;
using xCommons.Extensions;
using xIdentityService.Configuration;
using xIdentityService.Constants;
using xIdentityService.Interfaces;
using xIdentityService.Providers;
using xIdentityService.Security;
using IdentityModel.AspNetCore.OAuth2Introspection;
namespace xIdentityService.DI {
public static partial class XDIHelperExtension {
@@ -31,6 +31,7 @@ namespace xIdentityService.DI {
/// </summary>
/// <param name="services"></param>
/// <param name="configuration"></param>
/// <param name="lifeTime"></param>
public static void AddXIdentityService (
this IServiceCollection services,
IConfiguration configuration,
@@ -50,6 +51,7 @@ namespace xIdentityService.DI {
/// </summary>
/// <param name="services"></param>
/// <param name="configuration"></param>
/// <param name="lifeTime"></param>
public static void AddXIdentityService (
this IServiceCollection services,
XIdentityServiceConfiguration configuration,
@@ -62,14 +64,15 @@ namespace xIdentityService.DI {
/// Register Custome Token Provider
/// </summary>
/// <param name="services"></param>
/// <param name="lifeTime"></param>
/// <typeparam name="T"></typeparam>
public static void AddXTokenProvider<T> (
this IServiceCollection services,
ServiceLifetime lifetime = ServiceLifetime.Singleton)
ServiceLifetime lifeTime = ServiceLifetime.Singleton)
where T : IXTokenProvider {
//
Console.WriteLine ("IdentityService: Add Custom Token Provider ...");
services.Add (new ServiceDescriptor (typeof (IXTokenProvider), typeof (T), lifetime));
services.Add (new ServiceDescriptor (typeof (IXTokenProvider), typeof (T), lifeTime));
}
/// <summary>