Пример #1
0
        public ISourceStep Create(SourceStepDescription description)
        {
            if (!_subFactories.TryGetValue(description.GetType(), out var subFactory))
            {
                throw new BindingException("Failed to get factory for step type {0}", description.GetType().Name);
            }

            return(subFactory.Create(description));
        }
Пример #2
0
 protected SourceStep(SourceStepDescription description)
 {
     Description = description;
 }