//--------------------------------------------------------------------- public void setRpcSessionFactory(RpcSessionFactory factory) { mRpcSessionFactory = factory; mDefaultRpcSession = mRpcSessionFactory.createRpcSession(this); mMapRpcSession["Default"] = mDefaultRpcSession; }
//--------------------------------------------------------------------- public RpcSession createRpcSession(string name, bool as_default = false) { if (mMapRpcSession.ContainsKey(name)) { EbLog.Error("EntityMgr.createRpcSession() Failed! Exist Name=" + name); return null; } var rpc_session = mRpcSessionFactory.createRpcSession(this); if (as_default) mDefaultRpcSession = rpc_session; mMapRpcSession[name] = rpc_session; return rpc_session; }