示例#1
0
def userService() -> IUserService:
    b = UserService()
    proxy = createProxy(IUserService)(ProxyWrapper(b))
    bindSession(proxy, alchemySessionCreator())
    return proxy
示例#2
0
def bindSampleSession(proxy): bindSession(proxy, alchemySessionCreator())
support.listenToEntities(IMPL, listeners=addService(bindSampleSession,))
示例#3
0
def userService() -> IUserService:
    b = UserService()
    proxy = createProxy(IUserService)(ProxyWrapper(b))
    bindSession(proxy, alchemySessionCreator())
    return proxy
示例#4
0
def bindSampleSession(proxy):
    bindSession(proxy, alchemySessionCreator())