Пример #1
0
 public AbstractProcessor(ProcessorInfo processorInfo)
 {
     ProcessorParam = new ProcessorParamConfig();
     logger         = GlobalConfiguration.Instance.Logger;
     if (processorInfo != null)
     {
         ProcessorAttribute = processorInfo.attribute;
     }
 }
Пример #2
0
 public ProcessorInfo(ProcessorAttribute attribute, Type processorType)
 {
     this.attribute     = attribute;
     this.processorType = processorType;
     if (attribute.Singleton)
     {
         instanceHolder = (AbstractProcessor)Activator.CreateInstance(processorType, this);
     }
 }