diff --git a/.hgignore b/.hgignore index 8ec3e6972..3472a64ec 100644 --- a/.hgignore +++ b/.hgignore @@ -2,7 +2,6 @@ glob:bin glob:obj glob:App_Data glob:_ReSharper* -glob:src/Orchard.suo glob:*.user glob:*.patch glob:*.hg @@ -11,8 +10,8 @@ glob:artifacts glob:*.sln.cache glob:src/Orchard.Web/Media/* glob:desktop.ini -glob:src/Orchard.Azure.suo -glob:src/Orchard.5.0.ReSharper glob:log.xml glob:profiling -glob:*.csproj.orig +glob:src/*.suo +glob:src/*.ReSharper +glob:*.orig diff --git a/src/Orchard.Azure.Tests/App.config b/src/Orchard.Azure.Tests/App.config index c244681d2..b6e948b4a 100644 --- a/src/Orchard.Azure.Tests/App.config +++ b/src/Orchard.Azure.Tests/App.config @@ -1,6 +1,6 @@ - + - + - \ No newline at end of file + diff --git a/src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj b/src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj index 1e1dc42b3..ecdce0f39 100644 --- a/src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj +++ b/src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,8 +10,28 @@ Properties Orchard.Azure.Tests Orchard.Azure.Tests - v3.5 + v4.0 512 + + + 3.5 + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + true @@ -21,6 +41,7 @@ DEBUG;TRACE prompt 4 + AllRules.ruleset pdbonly @@ -29,6 +50,7 @@ TRACE prompt 4 + AllRules.ruleset @@ -47,6 +69,7 @@ 3.5 + 3.5 @@ -75,6 +98,23 @@ + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + true + + + False + Windows Installer 3.1 + true + + - $(MSBuildExtensionsPath)\Microsoft\Cloud Service\v1.0\ + $(MSBuildExtensionsPath)\Microsoft\Cloud Service\1.0\Visual Studio 10.0\ \ No newline at end of file diff --git a/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef b/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef index c1f66c33a..7fccedb76 100644 --- a/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef +++ b/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef @@ -2,7 +2,7 @@ - + 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 2d5045c4d..ab6d7c41c 100644 --- a/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj +++ b/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -11,8 +11,13 @@ Properties Orchard.Azure.Web Orchard.Azure.Web - v3.5 + v4.0 false + + + 3.5 + + true @@ -22,6 +27,7 @@ DEBUG;TRACE prompt 4 + AllRules.ruleset pdbonly @@ -30,6 +36,7 @@ TRACE prompt 4 + AllRules.ruleset @@ -56,23 +63,18 @@ 3.5 - - 3.5 - - - 3.5 - + + + + + False ..\..\..\..\..\..\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\\Assemblies\System.Web.Mvc.dll True - - 3.5 - - @@ -80,6 +82,7 @@ + @@ -98,7 +101,9 @@ - + + + {2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6} @@ -109,11 +114,9 @@ Orchard.Azure - - - + - + - - - - -
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + diff --git a/src/Orchard.Azure/Orchard.Azure.Web/WebRole.cs b/src/Orchard.Azure/Orchard.Azure.Web/WebRole.cs index e5b12b130..832917606 100644 --- a/src/Orchard.Azure/Orchard.Azure.Web/WebRole.cs +++ b/src/Orchard.Azure/Orchard.Azure.Web/WebRole.cs @@ -8,45 +8,19 @@ namespace Orchard.Azure.Web { public override bool OnStart() { DiagnosticMonitor.Start("DiagnosticsConnectionString"); - #region Setup CloudStorageAccount Configuration Setting Publisher - - // This code sets up a handler to update CloudStorageAccount instances when their corresponding - // configuration settings change in the service configuration file. - CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) => { - // Provide the configSetter with the initial value - configSetter(RoleEnvironment.GetConfigurationSettingValue(configName)); - - RoleEnvironment.Changed += (sender, arg) => { - if ( arg.Changes.OfType() - .Any(change => ( change.ConfigurationSettingName == configName )) ) { - // The corresponding configuration setting has changed, propagate the value - if ( !configSetter(RoleEnvironment.GetConfigurationSettingValue(configName)) ) { - // In this case, the change to the storage account credentials in the - // service configuration is significant enough that the role needs to be - // recycled in order to use the latest settings. (for example, the - // endpoint has changed) - RoleEnvironment.RequestRecycle(); - } - } - }; - }); - #endregion - - // 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; - } - }; + RoleEnvironment.Changing += RoleEnvironmentChanging; return base.OnStart(); } + private 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 bdd1d9fc8..22be35fc4 100644 --- a/src/Orchard.Azure/Orchard.Azure.csproj +++ b/src/Orchard.Azure/Orchard.Azure.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,8 +10,28 @@ Properties Orchard.Azure Orchard.Azure - v3.5 + v4.0 512 + + + 3.5 + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + true @@ -21,6 +41,7 @@ DEBUG;TRACE prompt 4 + AllRules.ruleset pdbonly @@ -29,13 +50,16 @@ TRACE prompt 4 + AllRules.ruleset + 3.5 + 3.5 @@ -50,6 +74,7 @@ + @@ -63,6 +88,23 @@ Orchard.Framework + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + true + + + False + Windows Installer 3.1 + true + +