Compare commits

...
6 Commits
Author SHA1 Message Date
saherelm d89acf612c last ... 2026-11-27 19:21:23 +03:30
saherelm 2970815270 last ... 2026-11-26 19:37:01 +03:30
saherelm 6757b2eaf6 last works on KeyedServices Feature ... 2026-11-24 10:44:27 +03:30
saherelm e2de55e8ef last works on Keyed Services ... 2026-11-24 08:25:21 +03:30
saherelm d5da835b71 add Support for XKeyedService ... 2026-11-23 16:33:11 +03:30
saherelm 939366fbb4 last ... 2026-11-16 23:11:57 +03:30
4 changed files with 1148 additions and 4 deletions
+23 -3
View File
@@ -975,7 +975,7 @@ namespace xCommons.Extensions
result.Add(updateWith);
//
return source;
return result;
}
/// <summary>
@@ -1013,7 +1013,7 @@ namespace xCommons.Extensions
result.Add(updateWith);
//
return source;
return result;
}
/// <summary>
@@ -1051,7 +1051,27 @@ namespace xCommons.Extensions
result.Add(updateWith);
//
return source;
return result;
}
/// <summary>
/// Converts an Enumerable to HashSet ...
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="source"></param>
/// <returns></returns>
public static HashSet<T> ToHashSet<T>(this IEnumerable<T> source)
{
//
var result = new HashSet<T>();
if (source.IsNull())
{
return result;
}
//
result = [.. source];
return result;
}
/// <summary>
+14 -1
View File
@@ -5,6 +5,7 @@ using xCommons.Filters;
using xCommons.Constants;
using xCommons.Providers;
using xCommons.Interfaces;
using xExceptions.Constants;
using xCommons.Configurations;
using Microsoft.AspNetCore.Mvc;
using Microsoft.OpenApi.Models;
@@ -14,7 +15,6 @@ using Swashbuckle.AspNetCore.SwaggerUI;
using Swashbuckle.AspNetCore.SwaggerGen;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using xExceptions.Constants;
namespace xCommons.Extensions
{
@@ -33,6 +33,19 @@ namespace xCommons.Extensions
return serviceProvider.GetService<T>();
}
/// <summary>
/// Inject Specific Registered Services from IServiceCollection
/// </summary>
/// <param name="source"></param>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
public static IEnumerable<T> GetRegisteredServices<T>(this IServiceCollection source)
{
//
var serviceProvider = source.BuildServiceProvider();
return serviceProvider.GetServices<T>();
}
/// <summary>
/// Register App Configuration as a Service
/// </summary>
+3
View File
@@ -63,6 +63,9 @@ namespace xCommons.Extensions {
//
var idContainer = parts[0];
var messageContainer = parts[1];
//
// TODO: Fix this ...
}
//
File diff suppressed because it is too large Load Diff