Exemplo n.º 1
0
        protected override IEnumerable <Prompt> Execute_Subclass()
        {
            ResetSubscriptionCache();
            var signals = SignalFileParser.Parse(SignalFileLocation);

            try
            {
                if (!EvaluatePerformanceImpact(signals))
                {
                    Prompts.Add(new Prompt
                    {
                        Message  = "Could not successfully evaluate performance, cannot continue.",
                        Severity = PromptSeverity.MayNotContinue
                    });
                    return(Prompts);
                }

                GetAndUpdateInitialPropertiesForSignals(_signalsToUse);
            }
            catch (Exception ex)
            {
                Prompts.Add(ex.ToPrompt());
                return(Prompts);
            }

            return(Prompts);
        }
Exemplo n.º 2
0
        protected override IEnumerable <Prompt> Execute_Subclass()
        {
            var signals = SignalFileParser.Parse(SignalFileLocation);

            try
            {
                EvaluatePerformanceImpact(signals);
            }
            catch (Exception ex)
            {
                Prompts.Add(ex.ToPrompt());
                return(Prompts);
            }

            GetAndUpdateInitialPropertiesForSignals(Signals);

            return(Prompts);
        }