<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
- <add key="MONO_MESSAGING_PROVIDER" value="Mono.Messaging.RabbitMQ.RabbitMQMessagingProvider,Mono.Messaging.RabbitMQ"/>
+ <add key="MONO_MESSAGING_PROVIDER" value="rabbitmq"/>
</appSettings>
</configuration>
\ No newline at end of file
+2009-07-20 Michael Barker <mike@middlesoft.co.uk>
+
+ * MessagingProviderLocator.cs: Changed System.Exceptions to
+ MonoMessagingExceptions.
+
2009-07-20 Michael Barker <mike@middlesoft.co.uk>
* MessagingProviderLocator.cs: Default to rabbitmq if no
#if NET_2_0 || BOOTSTRAP_NET_2_0 || NET_3_0 || NET_2_1 || NET_3_0 || NET_3_5 || NET_4_0 || BOOTSTRAP_NET_4_0
private string GetProviderClassName ()
{
- string className = System.Configuration.ConfigurationSettings.AppSettings[MESSAGING_PROVIDER_KEY];
+ string className = System.Configuration.ConfigurationManager.AppSettings[MESSAGING_PROVIDER_KEY];
return className != null ? className : System.Environment.GetEnvironmentVariable(MESSAGING_PROVIDER_KEY);
}
#else
{
Type t = ResolveType (className);
if (t == null)
- throw new Exception ("Can't find class: " + className);
+ throw new MonoMessagingException ("Can't find class: " + className);
ConstructorInfo ci = t.GetConstructor (BindingFlags.Public | BindingFlags.Instance,
Type.DefaultBinder,
new Type[0],
new ParameterModifier[0]);
if (ci == null)
- throw new Exception ("Can't find constructor");
+ throw new MonoMessagingException ("Can't find constructor");
return (IMessagingProvider) ci.Invoke (new object[0]);
}