public AmqpSettings(Version preferredVersion, IEnumerable<VersionRange> supportedVersions, IPAddress ipAddress, int port) { this.PreferredVersion = preferredVersion; this.SupportedVersions = supportedVersions; this.IpAddress = ipAddress; this.Port = port; }
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)); } }
public static void UseVersion (this IConnection connection, Version version) { //connection.Version = version; }