diff --git a/src/Orchard.Web/Orchard.Web.csproj b/src/Orchard.Web/Orchard.Web.csproj index 743a29cca..d8d6d64b7 100644 --- a/src/Orchard.Web/Orchard.Web.csproj +++ b/src/Orchard.Web/Orchard.Web.csproj @@ -164,6 +164,7 @@ + @@ -341,7 +342,6 @@ - diff --git a/src/Orchard.Web/Web.config b/src/Orchard.Web/Web.config index f773df541..f1524c319 100644 --- a/src/Orchard.Web/Web.config +++ b/src/Orchard.Web/Web.config @@ -25,7 +25,7 @@ - + - @@ -102,7 +102,7 @@ - + diff --git a/src/Orchard/Environment/Configuration/AzureBlobTenantManager.cs b/src/Orchard/Environment/Configuration/AzureBlobTenantManager.cs new file mode 100644 index 000000000..778339afd --- /dev/null +++ b/src/Orchard/Environment/Configuration/AzureBlobTenantManager.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; + +namespace Orchard.Environment.Configuration { + public class AzureBlobTenantManager : ITenantManager{ + public AzureBlobTenantManager(string foo) { + int x = 5; + } + + public string Foo { get; set; } + + public IEnumerable LoadSettings() { + throw new NotImplementedException(); + } + + public void SaveSettings(IShellSettings settings) { + throw new NotImplementedException(); + } + } +} diff --git a/src/Orchard/Environment/OrchardStarter.cs b/src/Orchard/Environment/OrchardStarter.cs index 324687510..d413c5119 100644 --- a/src/Orchard/Environment/OrchardStarter.cs +++ b/src/Orchard/Environment/OrchardStarter.cs @@ -1,5 +1,9 @@ using System; +using System.Configuration; +using System.IO; +using System.Web.Hosting; using Autofac; +using Autofac.Configuration; using Autofac.Integration.Web; using Orchard.Environment.AutofacUtil; using Orchard.Environment.Configuration; @@ -44,6 +48,15 @@ namespace Orchard.Environment { registrations(builder); + + var autofacSection = ConfigurationManager.GetSection(ConfigurationSettingsReader.DefaultSectionName); + if (autofacSection != null) + builder.RegisterModule(new ConfigurationSettingsReader()); + + var optionalHostConfig = HostingEnvironment.MapPath("~/App_Data/Host.config"); + if (File.Exists(optionalHostConfig)) + builder.RegisterModule(new ConfigurationSettingsReader(ConfigurationSettingsReader.DefaultSectionName, optionalHostConfig)); + return builder.Build(); } diff --git a/src/Orchard/Orchard.Framework.csproj b/src/Orchard/Orchard.Framework.csproj index df360af74..2b5c39d1c 100644 --- a/src/Orchard/Orchard.Framework.csproj +++ b/src/Orchard/Orchard.Framework.csproj @@ -35,6 +35,10 @@ False ..\..\lib\autofac\Autofac.dll + + False + ..\..\lib\autofac\Autofac.Configuration.dll + False ..\..\lib\autofac\Autofac.Integration.Web.dll @@ -158,6 +162,7 @@ +