Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Sitecore.Services.Examples.Catalog.Pipelines;
- using Sitecore.Services.Examples.Catalog.Pipelines.Blocks;
- namespace Sitecore.Services.Examples.Catalog
- {
- using System.Reflection;
- using Microsoft.Extensions.DependencyInjection;
- using Commerce.Core;
- using Framework.Configuration;
- using Sitecore.Framework.Pipelines.Definitions.Extensions;
- using Commerce.EntityViews;
- using Sitecore.Commerce.Plugin.Catalog;
- public class ConfigureSitecore : IConfigureSitecore
- {
- /// <summary>
- /// The configure services.
- /// </summary>
- /// <param name="services">
- /// The services.
- /// </param>
- public void ConfigureServices(IServiceCollection services)
- {
- var assembly = Assembly.GetExecutingAssembly();
- services.RegisterAllPipelineBlocks(assembly);
- services.Sitecore().Pipelines(config => config
- .AddPipeline<ICreateUpdateSellableItemPipeline, CreateUpdateSellableItemPipeline>(
- configure =>
- {
- configure.Add<CreateUpdateSellableItemBlock>();
- })
- .ConfigurePipeline<IConfigureServiceApiPipeline>(configure => configure.Add<ConfigureServiceApiBlock>()));
- services.RegisterAllCommands(assembly);
- }
- }
- }
Add Comment
Please, Sign In to add comment