How to find Service from ServiceStack RequestFilter
问题 I'm trying to implement a RequestFilter that conditionally executes, based on information in the Service that would get invoked. I'd like to make the RequestFilter find the Service , look at it for a method/interface/attribute, and conditionally do its work based on that. I'm aware that you can declare a RequestFilterAttribute on the Service , but I couldn't figure out a good way to make it conditional. I wanted to pass a delegate/lambda into the attribute, but C# doesn't allow that. I could