Implementing IPushPipe

To implement the IPushPipe interface, add the following method in XmlInboundPipe.cs:

public virtual void PushData(IList<PublishingSystemEventInfo> items)
{
    var wrapperObjects = items.Select(i =>
    {
        var item = i.Item;
        return (item is WrapperObject) ? (WrapperObject)item : new WrapperObject(item) { MappingSettings = this.PipeSettings.Mappings, Language = i.Language };
    }).ToList();
 
    this.publishingPoint.RemoveItems(wrapperObjects);
    this.publishingPoint.AddItems(wrapperObjects);
}

You must implement the PushData method. First, you wrap all objects. Then, you push the data to the publishing point.

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK