/// <summary> /// Executes this tag. /// </summary> /// <param name="context">The <see cref="IMansionContext"/>.</param> /// <param name="outputPipe">The <see cref="CsvOutputPipe"/> to which to write.</param> protected override void DoExecute(IMansionContext context, CsvOutputPipe outputPipe) { // get the attributes var values = GetRequiredAttribute<string>(context, "values"); // write the row outputPipe.Write(values.Split(new[] {','})); }
/// <summary> /// Executes this tag. /// </summary> /// <param name="context">The <see cref="IMansionContext"/>.</param> /// <param name="outputPipe">The <see cref="CsvOutputPipe"/> to which to write.</param> protected override void DoExecute(IMansionContext context, CsvOutputPipe outputPipe) { // get the attributes var dataspace = GetRequiredAttribute<IPropertyBag>(context, "source"); // write the row outputPipe.Write(context, dataspace); }