riskfirst / riskfirst.hateoas

Powerful HATEOAS functionality for .NET web api
MIT License
78 stars 25 forks source link

Is it possible to add HATEOS to result filters? #33

Closed airslip-ltd closed 4 years ago

airslip-ltd commented 4 years ago

Just wondering if it would be possible to inject the service in some way so I could add links in a result filter rather than of every API call.

airslip-ltd commented 4 years ago

The answer is yes, get the service like so context.HttpContext.RequestServices.GetService();