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
## -------------------------------------------------------------------------------------- | |
## Input | |
## -------------------------------------------------------------------------------------- | |
$webSiteName = $OctopusParameters['WebSiteName'] | |
$bindingPort = $OctopusParameters["BindingPort"] | |
$bindingIpAddress = $OctopusParameters["BindingIpAddress"] | |
$bindingHost = $OctopusParameters["BindingHost"] | |
$bindingSslThumbprint = $OctopusParameters["BindingSslThumbprint"] |
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 NHibernate; | |
using NLog; | |
public class AccountAccessor : IAccountAccessor { | |
Logger Log = LogManager.GetCurrentClassLogger(); | |
ISessionFactory _SessionFactory; | |
public AccountAccessor(ISessionFactory sessionFactory) { | |
_SessionFactory = sessionFactory; | |
} |
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.ObjectModel; | |
using System.Threading; | |
using System.Windows.Threading; | |
using Kiosk.Error; | |
using Kiosk.Globals; | |
namespace Kiosk.Gui.Types | |
{ | |
[Serializable] |
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
public class Customer : HQDataModelBase { | |
public virtual string FirstName { get; set; } | |
public virtual string LastName { get; set; } | |
public virtual string HomePhone { get; set; } | |
public virtual string MobilePhone { get; set; } | |
public virtual string BusinessPhone { get; set; } | |
public virtual string Email { get; set; } | |
public virtual Address Address { get; set; } | |
} |
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 {Product}.UX.ViewModels.Framework; | |
using Caliburn.Micro; | |
using MahApps.Metro.Controls; | |
using MahApps.Metro.Controls.Dialogs; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Windows; | |
namespace {Product}.UX.Services { | |
public class DialogManager : IDialogManager { | |
public static readonly MetroDialogSettings dialogSettings = new MetroDialogSettings { |
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
namespace {Product}.Infrastructure.Framework { | |
using FluentValidation; | |
using FluentValidation.Results; | |
using System; | |
using System.Text; | |
public static class ValidationHelper { | |
public static ValidationResult Validate<T, K>(K entity) | |
where T : IValidator<K>, new() | |
where K : class { | |
IValidator<K> __Validator = new T(); |
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.Linq.Expressions; | |
using System.Reflection; | |
using Xunit; | |
namespace ReflectedConstructor { | |
public static class MemberExpressions { | |
public static MemberInfo GetMemberInfo(this Expression expression) { | |
var lambda = (LambdaExpression)expression; | |
MemberExpression memberExpression; |
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
if (!$MainDB) { | |
$MainDB = '...'; | |
} | |
tools\migrate.exe --task migrate --connection "$MainDB" --provider "SqlServer2012" --assembly "lib\net45\Adapt.Gift.DatabaseScripts.dll" --tps |
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.Reflection; | |
using CommonDomain; | |
using CommonDomain.Core; | |
using CommonDomain.Persistence; | |
using CommonDomain.Persistence.EventStore; | |
using NEventStore; | |
using NEventStore.Dispatcher; |
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.Diagnostics; | |
using System.Linq; | |
using System.Reflection; | |
using ServiceStack.Net30.Collections.Concurrent; | |
/// <summary> | |
/// Helper class redirects events to private Apply(event) method |