title: Not able to read Config from custom exception filter in controller attribute
body: <p>Trying to read configuration from custom exception filter into controller attribute i have attached screenshots for reference.</p>
  
  <ul>
  <li>My controller </li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/7KWcz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7KWcz.png" alt="controller"></a></p>
  
  <ul>
  <li>My ExceptionFilter</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/rXI91.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rXI91.png" alt="apiexceptionfilter"></a></p>
  
  <ul>
  <li>Startup.cs</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/ZoJMk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZoJMk.png" alt="startup.cs"></a></p>
  
  <p><strong>error is how to read it into controller attribute</strong></p>
  
  <p><a href="https://i.stack.imgur.com/hBEA1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hBEA1.png" alt="enter image description here"></a></p>