public static DLLObjectWrapper getInstance() { lock (syncLock) { if (dllObjectWrapper == null) { dllObjectWrapper = new DLLObjectWrapper(); } } return(dllObjectWrapper); }
public static DLLObjectWrapper getInstance() { lock (syncLock) { if (dllObjectWrapper == null) { dllObjectWrapper = new DLLObjectWrapper(); } } return dllObjectWrapper; }
static void OnInitThread(Int64 index, int hChartWnd, Type type) { DLLObjectWrapper.getInstance().initMQLExpert(index, hChartWnd, type); try { getInstance(index).OnInit(); } finally { getInstance(index).executingOnInit = false; } }
public static void ExecOnInit(Int64 ix, int hChartWnd, Type type) { LOG.Debug(String.Format("Initializing: {0}", type.ToString())); DLLObjectWrapper.getInstance().initMQLThreadPool(ix); try { getThreadPool(ix).QueueWorkItem(OnInitThread, ix, hChartWnd, type); } catch (ArgumentNullException) { LOG.Error(String.Format("Strategy Class {0} not found", type.ToString())); } catch (Exception e) { LOG.Error(e); } }
public static MQLCommandManager getInstance(Int64 ix) { return(DLLObjectWrapper.getInstance().getMQLCommandManager(ix)); }
public static MQLExpert getInstance(Int64 ix) { return(DLLObjectWrapper.getInstance().getMQLExpert(ix)); }
private static SmartThreadPool getThreadPool(Int64 ix) { return(DLLObjectWrapper.getInstance().getMQLThreadPool(ix)); }