|
@@ -11,9 +11,9 @@ namespace WingServerCommon.Service
|
|
|
|
|
|
|
|
|
protected virtual void Disposing()
|
|
|
- {
|
|
|
+ {
|
|
|
_jsonRpcClientPool = null;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
protected void Dispose(bool disposing)
|
|
|
{
|
|
@@ -35,9 +35,9 @@ namespace WingServerCommon.Service
|
|
|
_jsonRpcClientPool = jsonRpcClientPool;
|
|
|
}
|
|
|
|
|
|
- protected void ThrowRpcException(int code, string message, string internalMessage=null)
|
|
|
+ protected void ThrowRpcException(int code, string message, string internalMessage = null)
|
|
|
{
|
|
|
- throw new RpcException(code, message, internalMessage??message);
|
|
|
+ throw new RpcException(code, message, internalMessage ?? message);
|
|
|
}
|
|
|
|
|
|
protected T GetProxy<T>()
|
|
@@ -46,7 +46,7 @@ namespace WingServerCommon.Service
|
|
|
if (client != null)
|
|
|
{
|
|
|
var proxy = client.CreateProxy<T>();
|
|
|
- if(proxy == null)
|
|
|
+ if (proxy == null)
|
|
|
{
|
|
|
throw new NotSupportedException($"Can not get proxy with type{typeof(T)} in rpc client");
|
|
|
}
|
|
@@ -56,5 +56,10 @@ namespace WingServerCommon.Service
|
|
|
|
|
|
throw new NotSupportedException($"Can not get proxy with type{typeof(T)}");
|
|
|
}
|
|
|
+
|
|
|
+ public virtual void LoadAfterRegister()
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|