rabbitmq / rabbitmq-objc-client

RabbitMQ client for Objective-C and Swift
https://rabbitmq.com
Other
243 stars 84 forks source link

Optional arguments for exchanges are not exposed in the API #192

Closed michaelklishin closed 2 years ago

michaelklishin commented 2 years ago

See #191 for the background.

As with other options, they can still be defined using a policy.

michaelklishin commented 2 years ago

Apparently they are, somehow GitHub search failed me :(

From ExchangeIntegrationTest.swift:

let conn = RMQConnection()
conn.start()
let ch = conn.createChannel()
let x = ch.fanout("objc.tests.fanout", options: [], arguments: [])

From RMQMethods.h:

@interface RMQExchangeDeclare : RMQValue <RMQMethod>
@property (nonnull, copy, nonatomic, readonly) RMQShort *reserved1;
@property (nonnull, copy, nonatomic, readonly) RMQShortstr *exchange;
@property (nonnull, copy, nonatomic, readonly) RMQShortstr *type;
@property (nonatomic, readonly) RMQExchangeDeclareOptions options;
@property (nonnull, copy, nonatomic, readonly) RMQTable *arguments;
- (nonnull instancetype)initWithReserved1:(nonnull RMQShort *)reserved1
                                 exchange:(nonnull RMQShortstr *)exchange
                                     type:(nonnull RMQShortstr *)type
                                  options:(RMQExchangeDeclareOptions)options
                                arguments:(nonnull RMQTable *)arguments;
@end