Skip to content

Commit 0547632

Browse files
committed
updated example
1 parent 98df5c8 commit 0547632

File tree

6 files changed

+39
-27
lines changed

6 files changed

+39
-27
lines changed

Elastacloud.FluentExamples/App.config

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<add key="defaultstorage" value="stackedstorage" />
99
<add key="mobileservicename" value="stackedmobile" />
1010
<add key="deploymentname" value="stacked deployment" />
11-
<add key="publishsettings" value="C:\Users\Richard\Desktop\Engagements\AllAccounts.publishsettings" />
12-
<add key="rdpfile" value="C:\Users\Richard\Desktop\Engagements\stackedliverpool.rdp" />
11+
<add key="publishsettings" value="C:\Projects\Elastacloud\AllAccounts.publishsettings" />
12+
<add key="rdpfile" value="C:\Projects\Elastacloud\Fluent Examples\stackedliverpool.rdp" />
1313
<add key="vmroleservice" value="stackedliverpool" />
1414
<add key="cloudservice" value="stackedliverpoolpaas" />
1515
<add key="rolename" value="ExampleWebRole" />
16-
<add key="deploymentpath" value="C:\Users\Richard\Documents\Fluent Examples\Elastacloud.FluentExamples\TestCloudInstall\bin\Release\app.publish" />
17-
<add key="builddirectory" value="C:\Users\Richard\Documents\Fluent Examples\Elastacloud.FluentExamples\TestCloudInstall" />
16+
<add key="deploymentpath" value="C:\Projects\Elastacloud\Fluent Examples\TestCloudInstall\bin\Release\app.publish" />
17+
<add key="builddirectory" value="C:\Projects\Elastacloud\Fluent Examples\TestCloudInstall" />
1818
</appSettings>
1919
<startup>
2020
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
@@ -25,6 +25,10 @@
2525
<assemblyIdentity name="BouncyCastle.Crypto" publicKeyToken="a4292a325f69b123" culture="neutral" />
2626
<bindingRedirect oldVersion="0.0.0.0-1.7.4137.9283" newVersion="1.7.4137.9283" />
2727
</dependentAssembly>
28+
<dependentAssembly>
29+
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
30+
<bindingRedirect oldVersion="0.0.0.0-5.2.0.0" newVersion="5.2.0.0" />
31+
</dependentAssembly>
2832
</assemblyBinding>
2933
</runtime>
3034
</configuration>

Elastacloud.FluentExamples/BuildMobileService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public void DoSomething()
5858
client.DynamicSchemaEnabled = true;
5959
client.MicrosoftAccountClientId = "test";
6060
client.MicrosoftAccountClientSecret = "test";
61+
client.MicrosoftAccountPackageSID = "test";
6162
client.Update();
6263

6364
Console.WriteLine("Application key: {0}", client.ApplicationKey);

Elastacloud.FluentExamples/BuildVirtualMachine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public BuildVirtualMachine(string subscriptionId, X509Certificate2 certificate)
4646
Protocol = Protocol.TCP
4747
}
4848
}),
49-
VirtualMachineType = VirtualMachineTemplates.WindowsServer2012,
49+
VirtualMachineType = VirtualMachineTemplates.WindowsServer2012_127GB,
5050
VmSize = VmSize.Medium,
5151
StorageAccountName = Settings.DefaultStorage,
5252
DataDisks = new List<DataVirtualHardDisk>(new[] {

Elastacloud.FluentExamples/Elastacloud.FluentExamples.csproj

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,23 @@
3838
<SpecificVersion>False</SpecificVersion>
3939
<HintPath>..\packages\BouncyCastle.1.7.0\lib\Net20\BouncyCastle.Crypto.dll</HintPath>
4040
</Reference>
41-
<Reference Include="Elastacloud.AzureManagement.Fluent, Version=0.4.4.0, Culture=neutral, processorArchitecture=MSIL">
41+
<Reference Include="Elastacloud.AzureManagement.Fluent, Version=0.4.8.5, Culture=neutral, processorArchitecture=MSIL">
4242
<SpecificVersion>False</SpecificVersion>
43-
<HintPath>..\packages\Elastacloud.AzureManagement.Fluent.0.4.4.9\lib\Elastacloud.AzureManagement.Fluent.dll</HintPath>
43+
<HintPath>..\packages\Elastacloud.AzureManagement.Fluent.0.4.8.5\lib\Elastacloud.AzureManagement.Fluent.dll</HintPath>
4444
</Reference>
45-
<Reference Include="Microsoft.SqlServer.ConnectionInfo, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
46-
<Private>True</Private>
47-
<HintPath>..\packages\Elastacloud.AzureManagement.Fluent.0.4.4.9\lib\Microsoft.SqlServer.ConnectionInfo.dll</HintPath>
45+
<Reference Include="Microsoft.Data.Edm, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
46+
<SpecificVersion>False</SpecificVersion>
47+
<HintPath>..\packages\Microsoft.Data.Edm.5.2.0\lib\net40\Microsoft.Data.Edm.dll</HintPath>
48+
</Reference>
49+
<Reference Include="Microsoft.Data.OData, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
50+
<SpecificVersion>False</SpecificVersion>
51+
<HintPath>..\packages\Microsoft.Data.OData.5.2.0\lib\net40\Microsoft.Data.OData.dll</HintPath>
4852
</Reference>
49-
<Reference Include="Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
50-
<Private>True</Private>
51-
<HintPath>..\packages\Elastacloud.AzureManagement.Fluent.0.4.4.9\lib\Microsoft.SqlServer.Management.Sdk.Sfc.dll</HintPath>
53+
<Reference Include="Microsoft.WindowsAzure.Configuration, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
54+
<HintPath>..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll</HintPath>
5255
</Reference>
53-
<Reference Include="Microsoft.SqlServer.Smo, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
54-
<Private>True</Private>
55-
<HintPath>..\packages\Elastacloud.AzureManagement.Fluent.0.4.4.9\lib\Microsoft.SqlServer.Smo.dll</HintPath>
56+
<Reference Include="Microsoft.WindowsAzure.Storage, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
57+
<HintPath>..\packages\WindowsAzure.Storage.2.0.5.1\lib\net40\Microsoft.WindowsAzure.Storage.dll</HintPath>
5658
</Reference>
5759
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
5860
<SpecificVersion>False</SpecificVersion>
@@ -65,7 +67,12 @@
6567
<Reference Include="System" />
6668
<Reference Include="System.Configuration" />
6769
<Reference Include="System.Core" />
70+
<Reference Include="System.Data.Services.Client" />
6871
<Reference Include="System.Security" />
72+
<Reference Include="System.Spatial, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
73+
<SpecificVersion>False</SpecificVersion>
74+
<HintPath>..\packages\System.Spatial.5.2.0\lib\net40\System.Spatial.dll</HintPath>
75+
</Reference>
6976
<Reference Include="System.Xml.Linq" />
7077
<Reference Include="System.Data.DataSetExtensions" />
7178
<Reference Include="Microsoft.CSharp" />
@@ -90,12 +97,6 @@
9097
</ItemGroup>
9198
<ItemGroup>
9299
<None Include="App.config" />
93-
<Content Include="NLog.config">
94-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
95-
</Content>
96-
<None Include="NLog.xsd">
97-
<SubType>Designer</SubType>
98-
</None>
99100
<None Include="packages.config" />
100101
</ItemGroup>
101102
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Elastacloud.FluentExamples/Program.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ static void Main(string[] args)
2929
Workflows.Add(getSettings.ToString(), getSettings);
3030
ProcessWorkflow(getSettings.ToString());
3131

32+
// test create a mobile services deployment
33+
IBuilder mobileService = new BuildMobileService(Settings.SubscriptionId, Settings.ManagementCertificate);
34+
Builders.Add(mobileService.ToString(), mobileService);
35+
ProcessBuilder(mobileService.ToString());
36+
3237
// Add the test get blob API - before running this create a storage account using AMS called stackedstorage
3338
// TO CHECK THIS DEMO CREATE THE STORAGE ACOUNT AND CONTAINER "docs" AND THEN UPLOAD A "test.txt" FILE
3439
IWorkflow getBlob = new BuildGetBlobRequest(Settings.SubscriptionId, Settings.ManagementCertificate);
@@ -52,10 +57,6 @@ static void Main(string[] args)
5257
Workflows.Add(linqToStorage.ToString(), linqToStorage);
5358
ProcessWorkflow(linqToStorage.ToString());
5459

55-
// test create a mobile services deployment
56-
IBuilder mobileService = new BuildMobileService(Settings.SubscriptionId, Settings.ManagementCertificate);
57-
Builders.Add(mobileService.ToString(), mobileService);
58-
ProcessBuilder(mobileService.ToString());
5960

6061
// test role system watcher
6162
var watcher = new WorkflowRoleSystemWatcher(Settings.SubscriptionId, Settings.ManagementCertificate);
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="BouncyCastle" version="1.7.0" targetFramework="net45" />
4-
<package id="Elastacloud.AzureManagement.Fluent" version="0.4.4.9" targetFramework="net45" />
4+
<package id="Elastacloud.AzureManagement.Fluent" version="0.4.8.5" targetFramework="net45" />
5+
<package id="Microsoft.Data.Edm" version="5.2.0" targetFramework="net45" />
6+
<package id="Microsoft.Data.OData" version="5.2.0" targetFramework="net45" />
7+
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" targetFramework="net45" />
58
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net45" />
69
<package id="NLog" version="2.0.0.2000" targetFramework="net45" />
710
<package id="NLog.Config" version="2.0.0.2000" targetFramework="net45" />
11+
<package id="System.Spatial" version="5.2.0" targetFramework="net45" />
12+
<package id="WindowsAzure.Storage" version="2.0.5.1" targetFramework="net45" />
813
</packages>

0 commit comments

Comments
 (0)