Example #1
0
        public string TransformCatalogEvent(CheckpointTag eventPosition, ResolvedEvent data)
        {
            CheckDisposed();
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }

            return(_query.TransformCatalogEvent(
                       (data.Data ?? "").Trim(),          // trimming data passed to a JS
                       new[] {
                data.IsJson ? "1" : "", data.EventStreamId, data.EventType ?? "", "",
                data.EventSequenceNumber.ToString(CultureInfo.InvariantCulture), data.Metadata ?? "",
                data.PositionMetadata ?? "", data.EventStreamId, data.StreamMetadata ?? ""
            }));
        }