public AbstractProcessor(ProcessorInfo processorInfo) { ProcessorParam = new ProcessorParamConfig(); logger = GlobalConfiguration.Instance.Logger; if (processorInfo != null) { ProcessorAttribute = processorInfo.attribute; } }
public ProcessorInfo(ProcessorAttribute attribute, Type processorType) { this.attribute = attribute; this.processorType = processorType; if (attribute.Singleton) { instanceHolder = (AbstractProcessor)Activator.CreateInstance(processorType, this); } }