I’ve been working on trying out the Catalog Import plugin written by the XCentium team and available on Github. For those who have worked on Sitecore XC before, you would have declared Pipeline Blocks like the below extract from the Catalog Import plugin
public class ExportCommerceEntitiesBlock : PipelineBlock<ExportEntitiesArgument, EntityCollectionModel, CommercePipelineExecutionContext>
In Sitecore XC 10, the Pipeline Block class is gone, without as much as an obsolete message. Instead, we have two new options available to us that allow us to wire up both Async and Sync pipeline blocks
public class ExportCommerceEntitiesBlock : AsyncPipelineBlock<ExportEntitiesArgument, EntityCollectionModel, CommercePipelineExecutionContext>
public class ExportCommerceEntitiesBlock : SyncPipelineBlock<ExportEntitiesArgument, EntityCollectionModel, CommercePipelineExecutionContext>
The Run method has also been changed and will either need to be implemented as RunAsync
or RunSync
depending on the Pipeline Block type you’re implementing