Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Migrated .net core projects from legacy structure to habitat struct…
…ure.
- Loading branch information
Kaz
committed
Mar 24, 2017
1 parent
731a26c
commit ffa626e
Showing
113 changed files
with
1,223 additions
and
7,785 deletions.
There are no files selected for viewing
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
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
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
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
46 changes: 46 additions & 0 deletions
46
src/Foundation/Commerce.Entitlements/Engine.Entitlements/ConfigureSitecore.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System.Reflection; | ||
|
||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
using Sitecore.Framework.Configuration; | ||
using Sitecore.Framework.Pipelines.Definitions.Extensions; | ||
using Sitecore.Commerce.Core; | ||
using Sitecore.Commerce.Plugin.Entitlements; | ||
using Sitecore.Commerce.EntityViews; | ||
|
||
using Sitecore.Foundation.Commerce.Engine.Plugin.Entitlements.Pipelines.Blocks.EntityViews; | ||
using Sitecore.Foundation.Commerce.Engine.Plugin.Entitlements.Pipelines.Blocks; | ||
|
||
|
||
namespace Sitecore.Foundation.Commerce.Engine.Plugin.Entitlements | ||
{ | ||
public class ConfigureSitecore : IConfigureSitecore | ||
{ | ||
public void ConfigureServices(IServiceCollection services) | ||
{ | ||
var assembly = Assembly.GetExecutingAssembly(); | ||
services.RegisterAllPipelineBlocks(assembly); | ||
services.RegisterAllCommands(assembly); | ||
|
||
services.Sitecore().Pipelines(config => config | ||
.ConfigurePipeline<IProvisionEntitlementsPipeline>(c => | ||
{ | ||
c.Add<ProvisionWarrantyEntitlementsBlock>().After<ProvisionEntitlementsBlock>() | ||
.Add<ProvisionDigitalProductEntitlementsBlock>().After<ProvisionEntitlementsBlock>() | ||
.Add<ProvisionInstallationEntitlementsBlock>().After<ProvisionEntitlementsBlock>(); | ||
}) | ||
.ConfigurePipeline<IGetEntityViewPipeline>(c => | ||
{ | ||
c.Add<GetOrderDigitalProductEntitlementDetailsViewBlock>().After<GetOrderEntitlementsViewBlock>() | ||
.Add<GetCustomerDigitalProductEntitlementDetailsViewBlock>().After<GetCustomerEntitlementsViewBlock>() | ||
.Add<GetOrderWarrantyEntitlementDetailsViewBlock>().After<GetOrderEntitlementsViewBlock>() | ||
.Add<GetCustomerWarrantyEntitlementDetailsViewBlock>().After<GetCustomerEntitlementsViewBlock>() | ||
.Add<GetOrderInstallationEntitlementDetailsViewBlock>().After<GetOrderEntitlementsViewBlock>() | ||
.Add<GetCustomerInstallationEntitlementDetailsViewBlock>().After<GetCustomerEntitlementsViewBlock>(); | ||
}) | ||
); | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Foundation/Commerce.Entitlements/Engine.Entitlements/Entities/DigitalProduct.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using Sitecore.Commerce.Plugin.Entitlements; | ||
|
||
namespace Sitecore.Foundation.Commerce.Engine.Plugin.Entitlements.Entities | ||
{ | ||
public class DigitalProduct : Entitlement {} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Foundation/Commerce.Entitlements/Engine.Entitlements/Entities/Installation.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using Sitecore.Commerce.Plugin.Entitlements; | ||
|
||
namespace Sitecore.Foundation.Commerce.Engine.Plugin.Entitlements.Entities | ||
{ | ||
public class Installation : Entitlement {} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Foundation/Commerce.Entitlements/Engine.Entitlements/Entities/Warranty.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using Sitecore.Commerce.Plugin.Entitlements; | ||
|
||
namespace Sitecore.Foundation.Commerce.Engine.Plugin.Entitlements.Entities | ||
{ | ||
public class Warranty : Entitlement {} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Foundation/Commerce.Entitlements/Engine.Entitlements/EntitlementsConstants.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sitecore.Foundation.Commerce.Engine.Plugin.Entitlements | ||
{ | ||
public static class EntitlementsConstants | ||
{ | ||
public static class Pipelines | ||
{ | ||
public static class Blocks | ||
{ | ||
public const string ProvisionWarrantyEntitlementsBlock = "Entitlements.block.ProvisionWarrantyEntitlements"; | ||
public const string ProvisionInstallationEntitlementsBlock = "Entitlements.block.ProvisionInstallationEntitlements"; | ||
public const string ProvisionDigitalProductEntitlementsBlock = "Entitlements.block.ProvisionDigitalProductEntitlements"; | ||
public const string GetOrderWarrantyEntitlementDetailsViewBlock = "Entitlements.block.GetOrderWarrantyEntitlementDetailsView"; | ||
public const string GetCustomerWarrantyEntitlementDetailsViewBlock = "Entitlements.block.GetCustomerWarrantyEntitlementDetailsView"; | ||
public const string GetOrderInstallationEntitlementDetailsViewBlock = "Entitlements.block.GetOrderInstallationEntitlementDetailsView"; | ||
public const string GetCustomerInstallationEntitlementDetailsViewBlock = "Entitlements.block.GetCustomerInstallationEntitlementDetailsView"; | ||
public const string GetOrderDigitalProductEntitlementDetailsViewBlock = "Entitlements.block.GetOrderDigitalProductEntitlementDetailsView"; | ||
public const string GetCustomerDigitalProductEntitlementDetailsViewBlock = "Entitlements.block.GetCustomerDigitalProductEntitlementDetailsView"; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.