使用 Castle 解析 System.Web.Services.WebService 实例(用于 AOP) [英] Resolve a System.Web.Services.WebService instance with Castle (for AOP purposes)

查看:27
本文介绍了使用 Castle 解析 System.Web.Services.WebService 实例(用于 AOP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用拦截器为现有的 Web 服务实现日志记录;在项目中,我们使用 System.Web.Services.WebService 类(与 asmx.cs 文件关联的类),但我在网上找到的所有示例都使用了城堡的 wcf 工具.

I wanted to implement logging for an existing web service with an interceptor; in the project we're using a System.Web.Services.WebService class (those associated with asmx.cs files), but all the examples I've found online use the castle's wcf facility.

有没有办法用 Castle 注册和解析 System.Web.Services.WebService 实例?

Is there a way to register and resolve a System.Web.Services.WebService instance with Castle?

推荐答案

我怀疑您是否可以代理 asmx WebService.IIRC asmx Web 服务的模型类似于 ASP.NET WebForms,所以 同样的限制适用.

I doubt you can proxy an asmx WebService. IIRC the model for asmx web services is similar to ASP.NET WebForms, so the same limitations apply.

这篇关于使用 Castle 解析 System.Web.Services.WebService 实例(用于 AOP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆