public override void OnDisConnect(ITcpClientSession session) { RpcContainer.DestroyScope(session.SessionId); foreach (var taskSource in taskDict.Values) { taskSource.SetException(new Exception("Disconnected with the server")); } }
public override void OnDisConnect(ITcpSession session) { RpcFactory.GetInvoke(session.SessionId).DisConnect(); rpcContainer.DestroyScope(session.SessionId); }