public IProgressStepOperation CreateStepOperation(IProgressController controller, IProgressStepDefinition definition)
{
if (controller == null)
{
throw new ArgumentNullException(nameof(controller));
}
ProgressStepDefinition supportedDefinition = definition as ProgressStepDefinition;
if (supportedDefinition == null)
{
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, ProgressResources.UnsupportedTypeException, definition.GetType().FullName, typeof(ProgressStepDefinition).FullName));
}
ProgressControllerStep step = new ProgressControllerStep(controller, supportedDefinition);
return step;
}