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
#requires -version 2.0 | |
param ( | |
[parameter(Mandatory=$true)] [string]$AzureServiceName, | |
[parameter(Mandatory=$true)] [string]$AzureDeploymentSlot, | |
[parameter(Mandatory=$true)] [string]$AzureSubscriptionId, | |
[parameter(Mandatory=$true)] [string]$AzureCertificateThumbprint) | |
$ErrorActionPreference = "Stop" | |
if ((Get-PSSnapin -Registered -Name AzureManagementCmdletsSnapIn -ErrorAction SilentlyContinue) -eq $null) |
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
<system.diagnostics> | |
<trace> | |
<listeners> | |
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"> | |
<filter type="" /> | |
</add> | |
</listeners> | |
</trace> | |
</system.diagnostics> |
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
static void WaitForWindowsAzureDiagnosticsInfrastructureToCatchUp() | |
{ | |
// According to http://l.tath.am/k6uPrK, the diagnostics infrastructure takes a | |
// few seconds to start. If a crash occurs during this time, we'd never be | |
// able to find out why. | |
// We also need to do this at the /end/ of the role. Even if we explicitly flush | |
// the trace, it'll still lose the last few messages if we exit too quickly. | |
Thread.Sleep(TimeSpan.FromSeconds(10)); | |
} |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using RestSharp; |
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
{'data' : [ | |
[ | |
{ | |
'column1': { | |
'outgoing_relationships' : 'http://foo/db/data/node/0/relationships/out', | |
'data' : { | |
'Bar' : '1', | |
'Baz' : '11' | |
}, | |
'traverse' : 'http://foo/db/data/node/0/traverse/{returnType}', |
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 System.Collections.Generic; | |
using System.Linq; | |
using Newtonsoft.Json; | |
namespace Neo4jClient.ApiModels.Cypher | |
{ | |
public class DataRow<TCol1, TCol2, TCol3> | |
{ | |
[JsonProperty("column1")] | |
public TCol1 Column1 { get; set; } |
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
[Test] | |
public void StartWithTwoNodesInSeperateColumnsShouldReturnIEnumerableOfObjects() | |
{ | |
//Arrange | |
const string cypherExpectedQuery = "start myNode=node({foo}) return myNode"; | |
var parameters = new Dictionary<string, object> | |
{ | |
{"foo", 123} | |
}; |
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 System; | |
using System.Runtime.Caching; | |
namespace MyStory.Logic.Services | |
{ | |
public class CacheService : ICacheService | |
{ | |
readonly ObjectCache cache; | |
readonly CacheItemPolicy defaultPolicy; | |
readonly IConfigOverrideProvider configOverrideProvider; |
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 NUnit.Framework; | |
using Neo4jClient.Gremlin; | |
namespace Neo4jClient.Test.Gremlin | |
{ | |
[TestFixture] | |
public class IfThenElseTests | |
{ | |
[Test] | |
public void IfThenElseVShouldAppendSteps() |
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 NUnit.Framework; | |
using Neo4jClient.Gremlin; | |
namespace Neo4jClient.Test.Gremlin | |
{ | |
[TestFixture] | |
public class GremlinDistinctStepTests | |
{ | |
[Test] | |
public void GremlinDistinctAppendStepToNodeQuery() |