Esempio n. 1
0
 public Classifier(
     IDispatcher dispatcher,
     IReadOnlyCollection <ISpanClassifier> spanClassifiers,
     IClassificationTypeService classificationTypeService)
 {
     this.dispatcher                = dispatcher;
     this.spanClassifiers           = spanClassifiers;
     this.classificationTypeService = classificationTypeService;
 }
Esempio n. 2
0
 public ClassifierProvider(
     IClassificationTypeService classificationTypeService,
     [ImportMany] IEnumerable <ISpanClassifier> spanClassifiers,
     [ImportMany] IEnumerable <IEventHandler> eventHandlers)
 {
     this.spanClassifiers           = spanClassifiers;
     this.eventHandlers             = eventHandlers;
     this.classificationTypeService = classificationTypeService;
 }
 public ClassifierFactory(IClassificationTypeService classificationTypeService, IParsersConfigurationService parsersConfigurationService)
 {
     this.classificationTypeService = classificationTypeService;
     this.parsersConfigurationService = parsersConfigurationService;
     classifiers = new ConcurrentDictionary<String, IClassifier>();
 }
Esempio n. 4
0
 public ClassifierFactory(IClassificationTypeService classificationTypeService, IParsersConfigurationService parsersConfigurationService)
 {
     this.classificationTypeService   = classificationTypeService;
     this.parsersConfigurationService = parsersConfigurationService;
     classifiers = new ConcurrentDictionary <String, IClassifier>();
 }
 public ParserBasedClassifier(IParser <T> parser, IParsedDataProcessor <T> processor, IClassificationTypeService classificationTypeService)
 {
     this.parser    = parser;
     this.processor = processor;
     this.classificationTypeService = classificationTypeService;
 }