diff --git a/src/hosting/NServiceBus.Hosting.Azure.HostProcess/AzureHostConfig.cs b/src/hosting/NServiceBus.Hosting.Azure.HostProcess/AzureHostConfig.cs new file mode 100644 index 00000000000..d9a7bc377a9 --- /dev/null +++ b/src/hosting/NServiceBus.Hosting.Azure.HostProcess/AzureHostConfig.cs @@ -0,0 +1,26 @@ +using System.Configuration; + +namespace NServiceBus.Config +{ + /// + /// Configuration section for Azure host. + /// + public class AzureHostConfig : ConfigurationSection + { + /// + /// A comma separated list of profile names + /// + [ConfigurationProperty("Profiles", IsRequired = false)] + public string Profiles + { + get + { + return this["Profiles"] as string; + } + set + { + this["Profiles"] = value; + } + } + } +} diff --git a/src/hosting/NServiceBus.Hosting.Azure.HostProcess/WindowsHost.cs b/src/hosting/NServiceBus.Hosting.Azure.HostProcess/WindowsHost.cs index 6565d14ec83..f3b8fa1a30b 100644 --- a/src/hosting/NServiceBus.Hosting.Azure.HostProcess/WindowsHost.cs +++ b/src/hosting/NServiceBus.Hosting.Azure.HostProcess/WindowsHost.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using NServiceBus.Config; namespace NServiceBus.Hosting.Azure.HostProcess {