我有一个服务:
[SomeResponse]
public class SomeService : ServiceBase {
public string[] CacheMemory{ get; set; }
//....
}
public class SomeResposeAttribute : ResponseFilterAttribute {
public override void Execute(IHttpRequest req, IHttpResponse res, object requestDto) {
//I want to access SomeService->CacheMemory here?? How?
}
}
现在,如果我需要CacheMemory
在返回之前对响应属性做一些事情。我如何访问它?谢谢你。