Пример #1
0
        protected virtual async Task Log(ImportEntityCommand command)
        {
            var commercePipelineExecutionContextOptions = new CommercePipelineExecutionContextOptions(
                new CommerceContext(CommerceContext.Logger, CommerceContext.TelemetryClient)
            {
                Environment = CommerceContext.Environment
            });

            await ServiceProvider.GetService <ILogEntityImportResultPipeline>()
            .Run(new LogEntityImportResultArgument(command), commercePipelineExecutionContextOptions)
            .ConfigureAwait(false);
        }
 public LogEntityImportResultArgument(ImportEntityCommand importEntityCommand)
 {
     ImportEntityCommand = importEntityCommand;
 }