public TaggedTextElementProvider(IContentType contentType, ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMap classificationFormatMap) { if (contentType == null) throw new ArgumentNullException(nameof(contentType)); if (textClassifierAggregatorService == null) throw new ArgumentNullException(nameof(textClassifierAggregatorService)); if (classificationFormatMap == null) throw new ArgumentNullException(nameof(classificationFormatMap)); classifierAggregator = textClassifierAggregatorService.Create(contentType); this.classificationFormatMap = classificationFormatMap; }
public TaggedTextElementProvider(IContentType contentType, ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMap classificationFormatMap) { if (contentType is null) { throw new ArgumentNullException(nameof(contentType)); } if (textClassifierAggregatorService is null) { throw new ArgumentNullException(nameof(textClassifierAggregatorService)); } classifierAggregator = textClassifierAggregatorService.Create(contentType); this.classificationFormatMap = classificationFormatMap ?? throw new ArgumentNullException(nameof(classificationFormatMap)); }