I would like to add additional data to all SS responses. But in response filter I need access to:
- session
- the service type.
Is this possible ?
Yeah in your filter you should have access to IRequest req
and get the session with req.GetSession()
Grzegorz Zielinski:
ok. How about service type ? Can I get service type used to handle request ?
Yeah, basically:
var requestType = req.Dto.GetType();
var serviceType = HostConfig.Metadata. GetServiceTypeByRequest(requestType);