配置中的拦截行为元素指示您要围绕已截获物件实例运行的外部代码。
The interception behavior element in the configuration indicates the external code you want to run around the intercepted object instance.
相反,类型侦听器只是类比已截获物件的类型,并在派生类型的实例上工作。
Type interceptors, instead, just mock the type of the intercepted object and work on an instance of a derived type.
介面侦听器是仅限于充当物件上一个介面的代理的实例侦听器。
The interface interceptor is an instance interceptor limited to act as the proxy of only one interface on the object.
应用推荐