Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brijbaroda/11591b4b5c14dc28c8e7f9fe854c78a3 to your computer and use it in GitHub Desktop.
Save brijbaroda/11591b4b5c14dc28c8e7f9fe854c78a3 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
var assembly = Assembly.GetExecutingAssembly();
services.RegisterAllPipelineBlocks(assembly);
services.Sitecore().Pipelines(config =>
config
.AddPipeline<IIMportSellableItemsPipeline, IMportSellableItemsPipeline>(
configure =>
{
configure.Add<ValidateXMLFile>()
.Add<CatalogManager>()
.Add<CategoryManager>()
.Add<SellableItemManager>();
})
.ConfigurePipeline<IConfigureServiceApiPipeline>(configure => configure.Add<ConfigureServiceApiBlock>()));
services.RegisterAllCommands(assembly);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment