Skip to content

Commit 1107edc

Browse files
committed
Release 0.5.1.12
1 parent f602bd1 commit 1107edc

File tree

7 files changed

+56
-7
lines changed

7 files changed

+56
-7
lines changed
Binary file not shown.

Elastacloud.AzureManagement.Fluent/Commands/Services/ServiceCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public virtual void Execute()
278278
if(_lastFailureResponse != null)
279279
throw new FluentManagementException(_lastFailureResponse, "ServiceCommand");
280280
if (_exception != null)
281-
throw _exception;
281+
throw new FluentManagementWebException(_exception as WebException);
282282
}
283283

284284
#endregion

Elastacloud.AzureManagement.Fluent/Elastacloud.AzureManagement.Fluent.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@
280280
<Compile Include="Types\CloudServiceStatus.cs" />
281281
<Compile Include="Types\ComputeMode.cs" />
282282
<Compile Include="Types\AvailableServices.cs" />
283+
<Compile Include="Types\Exceptions\FluentManagementWebException.cs" />
283284
<Compile Include="Types\Mobile Services\ScaleSettings.cs" />
284285
<Compile Include="Types\Virtual Machines\ImageProperties.cs" />
285286
<Compile Include="Types\Virtual Machines\EndpointAclRule.cs" />

Elastacloud.AzureManagement.Fluent/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
[assembly: GuidAttribute("909b2b8c-10bf-4f0d-a94e-208ef3bdca52")]
1313
[assembly: InternalsVisibleToAttribute("DynamicProxyGenAssembly2")]
1414
[assembly: InternalsVisibleToAttribute("Elastacloud.AzureManagement.Fluent.Tests")]
15-
[assembly: AssemblyVersionAttribute("0.5.1.9")]
16-
[assembly: AssemblyFileVersionAttribute("0.5.1.9")]
15+
[assembly: AssemblyVersionAttribute("0.5.1.12")]
16+
[assembly: AssemblyFileVersionAttribute("0.5.1.12")]
1717
namespace System {
1818
internal static class AssemblyVersionInformation {
19-
internal const string Version = "0.5.1.9";
19+
internal const string Version = "0.5.1.12";
2020
}
2121
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/************************************************************************************************************
2+
* This software is distributed under a GNU Lesser License by Elastacloud Limited and it is free to *
3+
* modify and distribute providing the terms of the license are followed. From the root of the source the *
4+
* license can be found in /Resources/license.txt *
5+
* *
6+
* Web at: www.elastacloud.com *
7+
* Email: [email protected] *
8+
************************************************************************************************************/
9+
10+
using System;
11+
using System.Net;
12+
using System.IO;
13+
14+
namespace Elastacloud.AzureManagement.Fluent.Types.Exceptions
15+
{
16+
/// <summary>
17+
/// A special type of exception used to capture the command that failed
18+
/// </summary>
19+
public class FluentManagementWebException : ApplicationException
20+
{
21+
private WebException _webException = null;
22+
/// <summary>
23+
/// Used to construct a fluent management exceptino
24+
/// </summary>
25+
/// <param name="message">The exception message</param>
26+
/// <param name="commandName">The name of the command</param>
27+
public FluentManagementWebException(WebException webException)
28+
{
29+
_webException = webException;
30+
}
31+
32+
/// <summary>
33+
/// Used to capture the name of the command that failed
34+
/// </summary>
35+
public override string Message
36+
{
37+
get
38+
{
39+
string message;
40+
using (var reader = new StreamReader(_webException.Response.GetResponseStream()))
41+
{
42+
message = reader.ReadToEnd();
43+
}
44+
return message;
45+
}
46+
}
47+
}
48+
}

Elastacloud.FluentManagement.FSTest/VirtualMachines.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ let properties = new LinuxVirtualMachineProperties(
4848
RoleName = "briskit",
4949
CloudServiceName = "briskit1003",
5050
PublicEndpoints = List<InputEndpoint>([|sshEndpoint|]),
51-
CustomTemplateName = "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_10-amd64-server-20141204-en-us-30GB",
51+
CustomTemplateName = "b39f27a8b8c64d52b05eac6a62ebad8__Ubuntu-14_10-amd64-server-20141204-en-us-30GB",
5252
DeploymentName = "briskit1003",
5353
StorageAccountName = "clustered")//,
5454
//VirtualNetwork = VirtualNetworkDescriptor(

package.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#r @"packages\FAKE\tools\FakeLib.dll" // include Fake lib
1+
#r @"packages\FAKE.3.17.0\tools\FakeLib.dll" // include Fake lib
22
open Fake
33
open Fake.AssemblyInfoFile
44
open Fake.NuGetHelper
@@ -9,7 +9,7 @@ open Fake.Git.Staging
99
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__
1010

1111
[<Literal>]
12-
let version = "0.5.1.9"
12+
let version = "0.5.1.12"
1313
// 1. Increment the minor number assemblyinfo version
1414
CreateCSharpAssemblyInfo (sprintf @"%s\Elastacloud.AzureManagement.Fluent\Properties\AssemblyInfo.cs" Environment.CurrentDirectory) [Attribute.Title("Elastacloud.AzureManagement.Fluent")
1515
Attribute.Description("Library used for management of Windows Azure services, SQL, storage, networking, WASD, WAMS and VM's")

0 commit comments

Comments
 (0)