Exemplo n.º 1
0
		public AmqpSettings(Version preferredVersion, IEnumerable<VersionRange> supportedVersions, IPAddress ipAddress, int port)
		{
			this.PreferredVersion = preferredVersion;
			this.SupportedVersions = supportedVersions;
			this.IpAddress = ipAddress;
			this.Port = port;
		}
Exemplo n.º 2
0
		static Version DecideWhichVersionToUse (Version clientVersion, Version serverVersion)
		{
			if (serverVersion == clientVersion) {
				return clientVersion;
			} else if (serverVersion < clientVersion) {
				return serverVersion;
			} else {
				throw new NotSupportedException (string.Format ("AMQP version {0} is not supported.", serverVersion));
			}
		}
Exemplo n.º 3
0
 public static void UseVersion (this IConnection connection, Version version)
 {
     //connection.Version = version;
 }