public bool GetTypeHandle(TypeId_I id, out RuntimeTypeHandle typeHandle) { var context = GetGlobalContext(); lock (context.SyncRoot) { return(context.TypeHandles.TryGetValue(id.Value, out typeHandle)); } }
public object GetApi(TypeId_I typeId) { var contextHost = XContextual.GetGlobal <LogicalGlobalContextHost_I>(); if (typeId.Value == 0) { return(null); } if (contextHost.Logical.LogicApis.TryGetValue(typeId.Value, out object logicObject)) { return(logicObject); } return(null); }
public bool EnsureTypeId(RuntimeTypeHandle typeHandle, out TypeId_I id) { var context = GetGlobalContext(); lock (context.SyncRoot) { if (!context.TypeIdsByTypeHandle.TryGetValue(typeHandle, out id)) { id = AddTypeId(typeHandle); return(false); } return(true); } }
/// <summary> /// Gets a logic container api based upon a typeid /// </summary> /// <param name="typeId"></param> /// <returns></returns> public LogicContainerApi_I GetApi(TypeId_I typeId) { // get from DI throw new System.NotImplementedException(); }
public bool GetTypeId(RuntimeTypeHandle typeHandle, out TypeId_I id) { return(XTypeIdentification.GetTypeId(typeHandle, out id)); }
public RuntimeTypeHandle GetTypeHandle(TypeId_I zTypeId) { XTypeIdentification.GetTypeHandle(zTypeId, out RuntimeTypeHandle typeHandle); return(typeHandle); }
public bool GetTypeHandle(TypeId_I id, out RuntimeTypeHandle typeHandle) { return(XTypeIdentification.GetTypeHandle(id, out typeHandle)); }
public static bool GetTypeHandle(TypeId_I id, out RuntimeTypeHandle typeHandle) { return(Api.GetTypeHandle(id, out typeHandle)); }
public static bool GetTypeId(RuntimeTypeHandle typeHandle, out TypeId_I id) { return(Api.EnsureTypeId(typeHandle, out id)); }
public static RuntimeTypeHandle GetTypeHandle(TypeId_I zTypeId) { return(Api.GetTypeHandle(zTypeId)); }
public static object GetApi(TypeId_I typeId) { return(Api.GetApi(typeId)); }