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
Import-Module NetworkLoadBalancingClusters | |
function Start-Node(){ | |
$nodeName = $OctopusParameters['NLBNodeName']; | |
Write-Host "Starting node with name: $nodeName" | |
$nodeResult = Start-NlbClusterNode $nodeName | |
$state = $nodeResult.State.ToString() | |
Write-Host "State of $nodeName is $state" | |
if ($state.ToString() -NotMatch "converged"){ |
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
Import-Module NetworkLoadBalancingClusters | |
function Stop-Node(){ | |
$nodeName = $OctopusParameters['NLBNodeName']; | |
Write-Host "Stopping node with name: $nodeName" | |
$nodeResult = Stop-NlbClusterNode $nodeName -Drain -Timeout 10 | |
$state = $nodeResult.State.ToString() | |
Write-Host "State of $nodeName is $state" | |
if ($state.ToString() -NotMatch "stopped"){ |
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 MyPayment : Payment | |
{ | |
public MyPayment() : base(MyPaymentMetaClass) // Passing in Null for MetaClass will blow up | |
{ | |
// ... | |
} | |
} | |
/* This class is in a third party assembly, I cannot change this. */ | |
public class Payment : OrderStorageBase |
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
// log an object to the browser console | |
console.log({ text: "foobar" }); |