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
using POC.Localization.Pipelines; | |
using POC.Localization.Pipelines.Arguments; | |
using Sitecore.Commerce.Core; | |
using Sitecore.Commerce.Core.Commands; | |
using Sitecore.Commerce.Plugin.Catalog; | |
using System; | |
using System.Threading.Tasks; | |
namespace POC.Localization.Commands | |
{ |
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
using POC.Localization.Commands; | |
using Microsoft.AspNetCore.Mvc; | |
using Sitecore.Commerce.Core; | |
using System; | |
using System.Threading.Tasks; | |
namespace POC.Localization.Controllers | |
{ | |
public class CommandsController : CommerceController | |
{ |
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 => | |
{ |
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 class ConfigureServiceApiBlock : PipelineBlock<ODataConventionModelBuilder, ODataConventionModelBuilder, CommercePipelineExecutionContext> | |
{ | |
public override Task<ODataConventionModelBuilder> Run(ODataConventionModelBuilder modelBuilder, CommercePipelineExecutionContext context) | |
{ | |
Condition.Requires(modelBuilder).IsNotNull($"{this.Name}: The argument cannot be null."); | |
// Add unbound actions | |
var configuration = modelBuilder.Action("ImportSellableItems"); | |
configuration.ReturnsFromEntitySet<CommerceCommand>("Commands"); |
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
module.exports = function () { | |
var config = { | |
webRoot: "C:\\inetpub\\wwwroot\\sitecoreWebSiteRootFolder", | |
devRoot: "C:\Projects\ProjectNameFolder", | |
solutionName: "SolutionName", | |
buildConfiguration: "Debug", | |
MSBuildToolsVersion: 15.0 | |
} | |
return config; | |
} |
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
var gulp = require("gulp"); | |
var msbuild = require("gulp-msbuild"); | |
var debug = require("gulp-debug"); | |
var foreach = require("gulp-foreach"); | |
var runSequence = require("run-sequence"); | |
var gulpConfig = require("./gulp-config.js")(); | |
module.exports.config = gulpConfig; | |
// From Habitat | |
gulp.task("Publish-All-Projects", function (callback) { |
NewerOlder