diff options
| author | Robert Greig <rgreig@apache.org> | 2007-01-29 11:05:20 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2007-01-29 11:05:20 +0000 |
| commit | 509d48d3a12c3477c893456549e0d052d9e5e9f9 (patch) | |
| tree | db601f414a0f65e79bd74a3957fc8a78f918df12 /dotnet/Qpid.Client/qms/ConnectionInfo.cs | |
| parent | a6808589c1ce06773f599bc28fe90938e2dcd60f (diff) | |
| download | qpid-python-509d48d3a12c3477c893456549e0d052d9e5e9f9.tar.gz | |
(Patch supplied by Tomas Restrepo) QPID-312.diff applied. This converts Javadoc copied accross from the orignal Java code to .Net format. Renames some files/classes/methods to use .Net conventions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501006 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Client/qms/ConnectionInfo.cs')
| -rw-r--r-- | dotnet/Qpid.Client/qms/ConnectionInfo.cs | 48 |
1 files changed, 17 insertions, 31 deletions
diff --git a/dotnet/Qpid.Client/qms/ConnectionInfo.cs b/dotnet/Qpid.Client/qms/ConnectionInfo.cs index 8ac11ec1ab..4bdf8f4d7c 100644 --- a/dotnet/Qpid.Client/qms/ConnectionInfo.cs +++ b/dotnet/Qpid.Client/qms/ConnectionInfo.cs @@ -20,7 +20,7 @@ */ using System.Collections; -namespace Qpid.Client.qms +namespace Qpid.Client.Qms { class ConnectionUrlConstants { @@ -31,45 +31,31 @@ namespace Qpid.Client.qms public const string OPTIONS_SSL = "ssl"; } - /** - Connection URL format - amqp://[user:pass@][clientid]/virtualhost?brokerlist='tcp://host:port?option=\'value\'&option=\'value\';vm://:3/virtualpath?option=\'value\''&failover='method?option=\'value\'&option='value''" - Options are of course optional except for requiring a single broker in the broker list. - The option seperator is defined to be either '&' or ',' - */ - public interface ConnectionInfo + /// <summary> + /// Connection URL format + /// amqp://[user:pass@][clientid]/virtualhost?brokerlist='tcp://host:port?option=\'value\'&option=\'value\';vm://:3/virtualpath?option=\'value\''&failover='method?option=\'value\'&option='value''" + /// Options are of course optional except for requiring a single broker in the broker list. + /// The option seperator is defined to be either '&' or ',' + /// </summary> + public interface IConnectionInfo { string AsUrl(); - string GetFailoverMethod(); - void SetFailoverMethod(string failoverMethod); - + string FailoverMethod { get; set; } + string ClientName { get; set; } + string Username { get; set; } + string Password { get; set; } + string VirtualHost { get; set; } string GetFailoverOption(string key); + + int BrokerCount { get; } - int GetBrokerCount(); - - BrokerInfo GetBrokerInfo(int index); + IBrokerInfo GetBrokerInfo(int index); - void AddBrokerInfo(BrokerInfo broker); + void AddBrokerInfo(IBrokerInfo broker); IList GetAllBrokerInfos(); - string GetClientName(); - - void SetClientName(string clientName); - - string GetUsername(); - - void setUsername(string username); - - string GetPassword(); - - void SetPassword(string password); - - string GetVirtualHost(); - - void SetVirtualHost(string virtualHost); - string GetOption(string key); void SetOption(string key, string value); |
