/// <summary>
        /// Get runtime mirror for variable.
        /// </summary>
        /// <param name="variableName"></param>
        /// <returns></returns>
        public RuntimeMirror GetMirror(string variableName)
        {
            RuntimeMirror mirror = null;

            try
            {
                mirror = liveRunnerServices.GetMirror(variableName);
            }
            catch (SymbolNotFoundException)
            {
                // The variable hasn't been defined yet. Just skip it.
            }
            catch (Exception ex)
            {
                dynSettings.Controller.DynamoLogger.Log("Failed to get mirror for variable: " + variableName + "; reason: " + ex.Message);
            }

            return(mirror);
        }
Exemple #2
0
        /// <summary>
        /// Get runtime mirror for variable.
        /// </summary>
        /// <param name="variableName"></param>
        /// <returns></returns>
        public RuntimeMirror GetMirror(string variableName)
        {
            lock (macroMutex)
            {
                RuntimeMirror mirror = null;
                try
                {
                    mirror = liveRunnerServices.GetMirror(variableName, VerboseLogging);
                }
                catch (SymbolNotFoundException)
                {
                    // The variable hasn't been defined yet. Just skip it.
                }
                catch (Exception ex)
                {
                    Log("Failed to get mirror for variable: " + variableName + "; reason: " +
                        ex.Message);
                }

                return(mirror);
            }
        }
Exemple #3
0
        /// <summary>
        /// Get runtime mirror for variable.
        /// </summary>
        /// <param name="variableName"></param>
        /// <returns></returns>
        public RuntimeMirror GetMirror(string variableName)
        {
            lock (macroMutex)
            {
                RuntimeMirror mirror = null;
                try
                {
                    mirror = liveRunnerServices.GetMirror(variableName, VerboseLogging);
                }
                catch (SymbolNotFoundException)
                {
                    // The variable hasn't been defined yet. Just skip it.
                }
                catch (Exception ex)
                {
                    Log(string.Format(Properties.Resources.FailedToGetMirrorVariable, variableName,
                                      ex.Message));
                }

                return(mirror);
            }
        }