Based on this Question Here , I am working on the solution to bind the controllers to certain URLs. These URLs are configured in appsettings.json
.
As the solution is based on the Decorators, I am searching for a way to inject the IConfiguration object for the decorators.
Example :
[PortActionConstraint(configuration.GetValue<string>("Product1:Port")]
[Route("api/[controller]")]
[ApiController]
public class Product1Controller : ControllerBase
In short, how can I inject IConfiguration of any Interface to the Class Decorator ?