摘要:
Object Scopes 指定了生成的实例在系统中是如何被共享的。 如何指定 scopecontainer.register(Animal.self) { _ in Cat() } .inObjectScope(.container)例子如上,每次 register 方法,都会返回 ServiceEntry 实例,然后调用其 inObjectScope 方法,会设置其 objectSco... 阅读全文
posted @ 2019-01-19 21:03
花老🐯
阅读(762)
评论(0)
推荐(0)

浙公网安备 33010602011771号