SonarLint.VisualStudio.Progress.Controller.DefaultProgressStepFactory.GetExecutionCallback C# (CSharp) Method

GetExecutionCallback() private method

private GetExecutionCallback ( IProgressStepOperation stepOperation ) : IProgressStepExecutionEvents
stepOperation IProgressStepOperation
return IProgressStepExecutionEvents
        public IProgressStepExecutionEvents GetExecutionCallback(IProgressStepOperation stepOperation)
        {
            ProgressControllerStep supportedStep = stepOperation as ProgressControllerStep;
            if (supportedStep == null)
            {
                throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, ProgressResources.UnsupportedTypeException, stepOperation.GetType().FullName, typeof(ProgressControllerStep).FullName));
            }

            return supportedStep;
        }
        #endregion