Implementing the IPushPipe interface

To implement the IPushPipe interface, you must implement the PushData method.

To implement the PushData method, add the following method in file FacebookEventsInboundPipe.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 );
}

First, you wrap all objects. Then, you push the data to the publishing point.

Next steps

+1-888-365-2779
sales@sitefinity.com

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