Ejemplo n.º 1
0
		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;
			}
		}
Ejemplo n.º 2
0
		public virtual void MapFunction(FunctionInfo funcInfo)
		{
			m_functionCache.Add(funcInfo);
			if(m_functionCache.Count >= kFunctionCacheSize || ShouldFlush)
				Flush();
		}
Ejemplo n.º 3
0
		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));
		}