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

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

            // Default to AppendBlob
            return(BlobEventStreamReader.CreateProjectionProcessor(attribute, connectionStringName));
        }