This file contains hidden or 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
internal class OrderStatusRepository : RepositoryBase, IOrderStatusRepository | |
{ | |
private IDatabaseUnitOfWork _uow; | |
public OrderStatusRepository(IDatabaseUnitOfWork uow) | |
{ | |
_uow = uow; | |
} | |
public IEnumerable<OrderStatusState> GetAll() |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
using Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Web; | |
using Vendr.Core.Calculators; | |
using Vendr.Core.Models; | |
using Vendr.Core.Services; | |
using Vendr.Web.Models; | |
namespace Vendr.DemoStore.Web.Calculators |
This file contains hidden or 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 System.Web.Http; | |
using Umbraco.Core.Cache; | |
using Umbraco.Web; | |
using Umbraco.Web.Mvc; | |
using Umbraco.Web.WebApi; | |
using Umbraco.Web.Cache; | |
using Umbraco.Core.Services.Changes; | |
namespace Our.Umbraco.Web.Controllers | |
{ |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Vendr.Core; | |
using Vendr.Core.Api; | |
using Vendr.Core.Models; | |
using Vendr.Core.Services; | |
namespace VendrExt | |
{ |
This file contains hidden or 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
{ | |
"$schema": "https://raw.githubusercontent.com/nuke-build/nuke/master/source/Nuke.CodeGeneration/schema.json", | |
"name": "UmbPack", | |
"officialUrl": "https://github.com/umbraco/UmbPack", | |
"help": "UmbPack is a CLI tool to use in CI/CD to upload Umbraco .zip packages to the our.umbraco.com package repository.", | |
"packageId": "Umbraco.Tools.Packages", | |
"packageExecutable": "UmbPack.dll", | |
"tasks": [ | |
{ | |
"postfix": "Pack", |
This file contains hidden or 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
Gnome Mailing List referencing BitKeeper, | |
an early CVS using master/slave to describe functionality | |
https://mail.gnome.org/archives/desktop-devel-list/2019-May/msg00066.html | |
Petr Baudis, git maintainer chose the name master as in master copy. | |
https://twitter.com/xpasky/status/1271477451756056577?s=21 | |
Petr does not rule out being influenced by bitkeeper. | |
https://twitter.com/xpasky/status/1272958618124595201?s=21 |
This file contains hidden or 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 Vendr.Core.Models; | |
using Vendr.Core.Services; | |
using Vendr.Core.Templating; | |
namespace Vendr.Core.Pipelines.Email.Tasks | |
{ | |
public class RenderEmailTemplateTask : PipelineTaskWithTypedArgsBase<EmailSendPipelineArgs, EmailContext> | |
{ | |
private ITranslationService _translationService; | |
private IEmailTemplateEngine _emailTemplateEngine; |
This file contains hidden or 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
// Perform a faceted search based on product categories | |
var dir = new DirectoryInfo(((LuceneIndex)index).LuceneIndexFolder.FullName); | |
using (var searcher = new IndexSearcher(FSDirectory.Open(dir), false)) | |
using (var factedSearcher = new SimpleFacetedSearch(searcher.IndexReader, new string[] { "searchCategory" })) | |
{ | |
var queryParser = new QueryParser(Version.LUCENE_30, "", new KeywordAnalyzer()); | |
var query = queryParser.Parse(sb.ToString()); | |
var queryResults = factedSearcher.Search(query, ps * p); | |
var facetedResults = new Dictionary<string, PagedResult<IPublishedContent>>(); |
This file contains hidden or 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
setTimeout(function() { | |
var form = document.getElementById("paymentForm"); | |
if (form.hasAttribute("onsubmit")) { | |
form.dispatchEvent(new Event('submit', { cancelable: true })); | |
} else { | |
form.submit(); | |
} | |
}, 100) |
This file contains hidden or 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 bundleId = "MyBundle"; | |
// Create a bundle | |
order.AddProduct("product-ref", 1, bundleId); | |
// Add a products to a bundle | |
order.AddProductToBundle(bundleId, "sub-product-ref1", 1); | |
order.AddProductToBundle(bundleId, "sub-product-ref2", 1); |