Adding RateLimit Feature ...
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user