Skip to content

Instantly share code, notes, and snippets.

@websterian
Created January 31, 2017 18:59
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 websterian/f3a1b9b7dc6a141ce684525830c1b349 to your computer and use it in GitHub Desktop.
Save websterian/f3a1b9b7dc6a141ce684525830c1b349 to your computer and use it in GitHub Desktop.
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CreateSomeItems.cs" company="">
//
// </copyright>
// <summary>
// Defines the CreateSomeItems type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Sitecore.DataExchange.Example.Processors.PipelineSteps
{
using Sitecore.DataExchange.Contexts;
using Sitecore.DataExchange.Example.Converters.PipelineStep;
using Sitecore.DataExchange.Models;
using Sitecore.DataExchange.Processors.PipelineSteps;
/// <summary>
/// The create some items.
/// </summary>
public class CreateSomeItems : BasePipelineStepProcessor
{
/// <summary>
/// The process.
/// </summary>
/// <param name="pipelineStep">
/// The pipeline step.
/// </param>
/// <param name="pipelineContext">
/// The pipeline context.
/// </param>
public override void Process(PipelineStep pipelineStep, PipelineContext pipelineContext)
{
var exampleSettings = pipelineStep.GetPlugin<ExampleSettings>();
if (exampleSettings != null)
{
pipelineContext.PipelineBatchContext.Logger.Info(
"Hello world! Create some items here..." + exampleSettings.CreatePath);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment