I’ve implemented a session timeout sliding as ResponseFilterAttribute. After implementing a simple “keep alive” GET request that doesn’t return a value, I found out that the code in my attribute isn’t invoked.
A short investigation showed that if I add any data to response (I added a string), the response filter code is triggered.
Please, advise how can I define a response filter attribute for service methods that don’t return values.
Sorry. I thought it is addressing only GET requests which are expected to return data.
It means that I can replace all void server API methods with returning string and return the empty string to enforce it invoking the response filter attribute, correct?