public static string GetFullSignature(FunctionInfo fi) { const string kUnknown = "(unknown)"; try { if(fi != null) return fi.Name + fi.Signature; return kUnknown; } catch(NHibernate.ObjectNotFoundException) { return kUnknown; } }
public virtual void MapFunction(FunctionInfo funcInfo) { m_functionCache.Add(funcInfo); if(m_functionCache.Count >= kFunctionCacheSize || ShouldFlush) Flush(); }
private void MapFunction(Messages.MapFunction mapFunc) { if(m_functions.ContainsKey(mapFunc.FunctionId)) return; FunctionInfo funcInfo = new FunctionInfo { Id = mapFunc.FunctionId }; funcInfo.ClassId = mapFunc.ClassId; funcInfo.Name = mapFunc.Name; funcInfo.Signature = mapFunc.Signature; funcInfo.IsNative = mapFunc.IsNative; m_functions.Add(funcInfo.Id, funcInfo); if(!m_classes.ContainsKey(funcInfo.ClassId)) RequestClassMapping(funcInfo.ClassId); m_data.MapFunction(funcInfo); Debug.WriteLine(string.Format("Mapped {0} to {1}.", mapFunc.Name, mapFunc.FunctionId)); }