开发者

Unity Interception and WCF RIA Domain Services

开发者 https://www.devze.com 2023-03-22 09:34 出处:网络
Can anyone tell me if it is possible to use Unity Interception on a RIA Domain Service and if so how it can be done.

Can anyone tell me if it is possible to use Unity Interception on a RIA Domain Service and if so how it can be done.

I already have a custom DomainServiceFactory which is used 开发者_如何学编程to create requested Domain Services allowing me to use Unity to inject dependencies via the Domain Service constructor.

Thanks.


I don't see why not. The only restrictions with Unity Interceptors is that you either have to have an interface to intercept, which don't come with RIA domain services out of the box, or that the class is not sealed and has virtual methods, which should apply to RIA services.

0

精彩评论

暂无评论...
验证码 换一张
取 消