Created
July 20, 2019 11:02
-
-
Save brijbaroda/11591b4b5c14dc28c8e7f9fe854c78a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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