Adding RateLimit Feature ...

This commit is contained in:
2026-11-09 15:40:10 +03:30
parent 0a8f9692dd
commit cba7637255
17 changed files with 787 additions and 10 deletions
+16
View File
@@ -51,6 +51,22 @@ namespace xCommons.Extensions
return xSwaggerConfigSection.Get<XSwaggerConfiguration>();
}
/// <summary>
/// Retrieve RateLimit Configurations ...
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static XRateLimitConfiguration GetXRateLimitConfiguration(this IConfiguration source)
{
//
var section = source
.GetSection(ConfigurationNodeNames.RATE_LIMIT_NODE);
//
var result = section.Get<XRateLimitConfiguration>();
return result;
}
/// <summary>
/// Retrieve File Type Detector Configuration ...
/// </summary>