MQL4CSharp.Base.MQL.MQLCommandManager.GetCommandId C# (CSharp) Метод

GetCommandId() приватный Метод

private GetCommandId ( System.Int64 ix, int id ) : int
ix System.Int64
id int
Результат int
        public static int GetCommandId(Int64 ix, int id)
        {
            try
            {
                lock (getInstance(ix).syncLock)
                {
                    if (getInstance(ix).commandRequests[id].CommandWaiting)
                    {
                        return (int) getInstance(ix).commandRequests[id].Command;
                    }
                    else
                    {
                        LOG.Error(Error.ERROR_NO_COMMAND.ToString());
                        return -1;
                    }
                }
            }
            catch (Exception e)
            {
                LOG.Error(e);
                return -1;
            }
        }