diff --git a/AzurePackage.proj b/AzurePackage.proj
index a5bc7ccfa..9ea83c86e 100644
--- a/AzurePackage.proj
+++ b/AzurePackage.proj
@@ -72,8 +72,6 @@
-
-
@@ -113,24 +111,6 @@
XPath="/log4net/root/priority/@value"
Value="ERROR" />
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ClickToRunAzureInDevFabric.cmd b/ClickToRunAzureInDevFabric.cmd
deleted file mode 100644
index c0a35a30e..000000000
--- a/ClickToRunAzureInDevFabric.cmd
+++ /dev/null
@@ -1,5 +0,0 @@
-SET CDIR = %CD%
-call "%ProgramFiles%\Windows Azure SDK\v1.2\bin\setenv.cmd"
-csrun /devstore
-csrun /run:"%CDIR %\build\Compile\Orchard.Azure.CloudService.csx";"%CDIR %\src\Orchard.Azure\Orchard.Azure.CloudService\ServiceConfiguration.cscfg" /launchbrowser
-pause
\ No newline at end of file
diff --git a/src/Orchard.Azure.Tests/App.config b/src/Orchard.Azure.Tests/App.config
index dcb9cb146..41aa17680 100644
--- a/src/Orchard.Azure.Tests/App.config
+++ b/src/Orchard.Azure.Tests/App.config
@@ -1,7 +1,7 @@
-
+
diff --git a/src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj b/src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj
index ecdce0f39..355147332 100644
--- a/src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj
+++ b/src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj
@@ -55,7 +55,7 @@
-
+
False
..\..\lib\moq\Moq.dll
diff --git a/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceConfiguration.cscfg b/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceConfiguration.cscfg
index 0e71f7efb..9600d5e76 100644
--- a/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceConfiguration.cscfg
+++ b/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceConfiguration.cscfg
@@ -1,5 +1,5 @@
-
+
diff --git a/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef b/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef
index 0cc371c69..3503cc02c 100644
--- a/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef
+++ b/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef
@@ -1,11 +1,18 @@
+
+
+
+
+
+
+
-
+
-
+
\ No newline at end of file
diff --git a/src/Orchard.Azure/Orchard.Azure.Web/Global.asax.cs b/src/Orchard.Azure/Orchard.Azure.Web/Global.asax.cs
index 2b3cdbad3..bd2b37c44 100644
--- a/src/Orchard.Azure/Orchard.Azure.Web/Global.asax.cs
+++ b/src/Orchard.Azure/Orchard.Azure.Web/Global.asax.cs
@@ -1,7 +1,10 @@
-using System.Web;
+using System.Linq;
+using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Autofac;
+using Microsoft.WindowsAzure;
+using Microsoft.WindowsAzure.ServiceRuntime;
using Orchard.Environment;
namespace Orchard.Azure.Web {
@@ -16,6 +19,21 @@ namespace Orchard.Azure.Web {
}
protected void Application_Start() {
+ CloudStorageAccount.SetConfigurationSettingPublisher(
+ (configName, configSetter) =>
+ configSetter(RoleEnvironment.GetConfigurationSettingValue(configName))
+ );
+
+ // For information on handling configuration changes
+ // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
+ RoleEnvironment.Changing += (sender, e) => {
+ // If a configuration setting is changing
+ if (e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange)) {
+ // Set e.Cancel to true to restart this role instance
+ e.Cancel = true;
+ }
+ };
+
RegisterRoutes(RouteTable.Routes);
_host = OrchardStarter.CreateHost(MvcSingletons);
diff --git a/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj b/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj
index 31d043fba..0550e42a9 100644
--- a/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj
+++ b/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj
@@ -58,7 +58,7 @@
False
-
+
..\..\..\lib\fluentnhibernate\NHibernate.ByteCode.Castle.dll
@@ -144,7 +144,6 @@
Global.asax
-
diff --git a/src/Orchard.Azure/Orchard.Azure.Web/WebRole.cs b/src/Orchard.Azure/Orchard.Azure.Web/WebRole.cs
deleted file mode 100644
index 4db62c516..000000000
--- a/src/Orchard.Azure/Orchard.Azure.Web/WebRole.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System.Linq;
-using Microsoft.WindowsAzure;
-using Microsoft.WindowsAzure.ServiceRuntime;
-
-namespace Orchard.Azure.Web {
- public class WebRole : RoleEntryPoint {
- public override bool OnStart() {
- CloudStorageAccount.SetConfigurationSettingPublisher(
- (configName, configSetter) =>
- configSetter(RoleEnvironment.GetConfigurationSettingValue(configName))
- );
-
- // For information on handling configuration changes
- // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
- RoleEnvironment.Changing += RoleEnvironmentChanging;
-
- return base.OnStart();
- }
-
- private static void RoleEnvironmentChanging(object sender, RoleEnvironmentChangingEventArgs e) {
- // If a configuration setting is changing
- if ( e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange) ) {
- // Set e.Cancel to true to restart this role instance
- e.Cancel = true;
- }
- }
- }
-}
diff --git a/src/Orchard.Azure/Orchard.Azure.csproj b/src/Orchard.Azure/Orchard.Azure.csproj
index b70945429..01dd0d140 100644
--- a/src/Orchard.Azure/Orchard.Azure.csproj
+++ b/src/Orchard.Azure/Orchard.Azure.csproj
@@ -54,7 +54,7 @@
-
+
3.5