Ejemplo n.º 1
0
        /// <summary>
        /// Create a classification processor to run over the given event stream's backing store
        /// </summary>
        public IClassificationProcessor CreateClassificationProcessorForEventStream(ClassificationAttribute attribute)
        {
            string connectionStringName = GetConnectionStringName(attribute);

            if (GetBackingImplementationType(attribute).Equals(EventStreamSetting.EVENTSTREAMIMPLEMENTATIOIN_TABLE, StringComparison.OrdinalIgnoreCase))
            {
                return(TableEventStreamReader.CreateClassificationProcessor(attribute, connectionStringName: connectionStringName));
            }

            // Default to AppendBlob
            return(BlobEventStreamReader.CreateClassificationProcessor(attribute, connectionStringName));
        }
Ejemplo n.º 2
0
 public ClassificationProcessor(BlobEventStreamReader blobEventStreamReader)
 {
     // Initialise the reader to use to read the events to be processed
     this.eventStreamReader = blobEventStreamReader;
 }