The AddService method is overloaded to create services the first time they are queried.
AddService 方法被重载,以便在第一次查询服务时创建相应的服务。
This can only be changed in the AddService action, so it is easy to make sure that our cache is accurate.
这只能在 AddService 操作中更改,因此可以很容易地确保缓存的精确性。
When you put the example SCA application into a debugger and place a breakpoint on the AddService add method, you see a call stack trace similar to Listing 4.
当使用调试器调试示例 SCA 应用程序并在 AddService add 方法上设置断点时,将看到如清单 4 所示的调用堆栈跟踪。
应用推荐